summaryrefslogtreecommitdiffstats
path: root/abi-check-plugin/src/main/java/com/yahoo/abicheck/mojo
diff options
context:
space:
mode:
authorIlpo Ruotsalainen <ilpo.ruotsalainen@oath.com>2018-11-27 13:15:35 +0100
committerIlpo Ruotsalainen <ilpo.ruotsalainen@oath.com>2018-11-28 15:54:45 +0100
commitbe26331d4c261bae81adc73b8552237923bc0e75 (patch)
tree45012f30f8095b8bf8f74ec02e29269d4ad61c89 /abi-check-plugin/src/main/java/com/yahoo/abicheck/mojo
parentd4f8dd3bc91b079012704031228300034d721b56 (diff)
Rename ClassFileTree.Class to ClassFile.
Better describes the usage of the class.
Diffstat (limited to 'abi-check-plugin/src/main/java/com/yahoo/abicheck/mojo')
-rw-r--r--abi-check-plugin/src/main/java/com/yahoo/abicheck/mojo/AbiCheck.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/abi-check-plugin/src/main/java/com/yahoo/abicheck/mojo/AbiCheck.java b/abi-check-plugin/src/main/java/com/yahoo/abicheck/mojo/AbiCheck.java
index d1707f4bf28..e1bb97e264b 100644
--- a/abi-check-plugin/src/main/java/com/yahoo/abicheck/mojo/AbiCheck.java
+++ b/abi-check-plugin/src/main/java/com/yahoo/abicheck/mojo/AbiCheck.java
@@ -5,7 +5,7 @@ import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeToken;
import com.yahoo.abicheck.classtree.ClassFileTree;
-import com.yahoo.abicheck.classtree.ClassFileTree.Class;
+import com.yahoo.abicheck.classtree.ClassFileTree.ClassFile;
import com.yahoo.abicheck.classtree.ClassFileTree.Package;
import com.yahoo.abicheck.collector.AnnotationCollector;
import com.yahoo.abicheck.collector.PublicSignatureCollector;
@@ -158,7 +158,7 @@ public class AbiCheck extends AbstractMojo {
}
private boolean isPublicAbiPackage(ClassFileTree.Package pkg) throws IOException {
- Optional<Class> pkgInfo = pkg.getClasses().stream()
+ Optional<ClassFile> pkgInfo = pkg.getClassFiles().stream()
.filter(klazz -> klazz.getName().equals(PACKAGE_INFO_CLASS_FILE_NAME)).findFirst();
if (!pkgInfo.isPresent()) {
return false;
@@ -176,7 +176,7 @@ public class AbiCheck extends AbstractMojo {
Map<String, JavaClassSignature> signatures = new LinkedHashMap<>();
if (isPublicAbiPackage(pkg)) {
PublicSignatureCollector collector = new PublicSignatureCollector();
- for (ClassFileTree.Class klazz : pkg.getClasses()) {
+ for (ClassFile klazz : pkg.getClassFiles()) {
try (InputStream is = klazz.getInputStream()) {
new ClassReader(is).accept(collector, 0);
}