Fixes dependency checking when casting arrays

This commit is contained in:
konsoletyper 2014-02-21 17:34:49 +04:00
parent 90a077fc34
commit e2d872fa20

View File

@ -228,6 +228,9 @@ class DependencyGraphBuilder {
if (targetClass != null) { if (targetClass != null) {
valueNode.connect(receiverNode, new DependencyTypeFilter() { valueNode.connect(receiverNode, new DependencyTypeFilter() {
@Override public boolean match(String type) { @Override public boolean match(String type) {
if (targetClass.getName().equals("java.lang.Object")) {
return true;
}
return isAssignableFrom(dependencyChecker.getClassSource(), targetClass, type); return isAssignableFrom(dependencyChecker.getClassSource(), targetClass, type);
} }
}); });