mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-06 19:59:17 +00:00
6910317: [classfile] typo and other issues in Dependency classes
Reviewed-by: ksrini
This commit is contained in:
parent
8d1a5a5750
commit
5722595a5b
@ -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 {
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
@ -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());
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user