aboutsummaryrefslogtreecommitdiffstats
path: root/abi-check-plugin
diff options
context:
space:
mode:
authorIlpo Ruotsalainen <ilpo.ruotsalainen@oath.com>2018-11-30 15:33:11 +0100
committerIlpo Ruotsalainen <ilpo.ruotsalainen@oath.com>2018-11-30 15:33:11 +0100
commitfda36d376057cbe710f89ec02d865739e02f1e61 (patch)
tree30e8bd32d2f17ce58d3473db6530774c7cb8e6f4 /abi-check-plugin
parent301d58138c74799251467920fe3e9a7b86b3ae7f (diff)
Restrict exceptions from ClassFileTree.close()
Otherwise using ClassFileTree in a try-with-resources block is frustrating.
Diffstat (limited to 'abi-check-plugin')
-rw-r--r--abi-check-plugin/src/main/java/com/yahoo/abicheck/classtree/ClassFileTree.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/abi-check-plugin/src/main/java/com/yahoo/abicheck/classtree/ClassFileTree.java b/abi-check-plugin/src/main/java/com/yahoo/abicheck/classtree/ClassFileTree.java
index 23cb227b590..c7863d85a3c 100644
--- a/abi-check-plugin/src/main/java/com/yahoo/abicheck/classtree/ClassFileTree.java
+++ b/abi-check-plugin/src/main/java/com/yahoo/abicheck/classtree/ClassFileTree.java
@@ -53,6 +53,8 @@ public abstract class ClassFileTree implements AutoCloseable {
};
}
+ public abstract void close() throws IOException;
+
public abstract Collection<Package> getRootPackages();
public static abstract class ClassFile {