6910317: [classfile] typo and other issues in Dependency classes

Reviewed-by: ksrini
This commit is contained in:
Jonathan Gibbons 2009-12-15 13:26:06 -08:00
parent 8d1a5a5750
commit 5722595a5b
3 changed files with 6 additions and 6 deletions

View File

@ -414,7 +414,7 @@ public class Dependencies {
return pattern.matcher(dependency.getTarget().getClassName()).matches();
}
Pattern pattern;
private final Pattern pattern;
}
/**
@ -448,8 +448,8 @@ public class Dependencies {
return false;
}
Set<String> packageNames;
boolean matchSubpackages;
private final Set<String> packageNames;
private final boolean matchSubpackages;
}
@ -543,8 +543,8 @@ public class Dependencies {
class Visitor implements ConstantPool.Visitor<Void,Void>, Type.Visitor<Void, Void> {
private ConstantPool constant_pool;
private Set<Dependency> deps;
private Location origin;
Set<Dependency> deps;
Visitor(ClassFile classFile) {
try {

View File

@ -54,7 +54,7 @@ public interface Dependency {
/**
* Find the immediate dependencies of a given class file.
* @param classfile the class file to be examined
* @return the set of dependencies located in the given class file.
* @return the dependencies located in the given class file.
*/
public Iterable<? extends Dependency> findDependencies(ClassFile classfile);
}

View File

@ -186,7 +186,7 @@ public class GetDeps {
private Comparator<Dependency> originComparator = new Comparator<Dependency>() {
public int compare(Dependency o1, Dependency o2) {
return o1.getTarget().toString().compareTo(o2.getOrigin().toString());
return o1.getOrigin().toString().compareTo(o2.getOrigin().toString());
}
};