Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Jython Snippet
Set<String> allModified = Generic.set();
PyJavaType[] conflicted = inConflict.toArray(new PyJavaType[inConflict.size()]);
for (PyJavaType type : conflicted) {
if (type.modified == null) {
continue;
}
for (String method : type.modified) {
if (!allModified.add(method)) { // Another type in conflict has this method, fail
PyList types = new PyList();
for (PyJavaType othertype : conflicted) {
if (othertype.modified != null && othertype.modified.contains(method)) {
types.add(othertype);
}
}
throw Py.TypeError(String.format("Supertypes that share a modified attribute "
+ " have an MRO conflict[attribute=%s, types=%s]", method, types));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.