diff options
author | Ilpo Ruotsalainen <ilpo.ruotsalainen@oath.com> | 2018-11-30 15:33:11 +0100 |
---|---|---|
committer | Ilpo Ruotsalainen <ilpo.ruotsalainen@oath.com> | 2018-11-30 15:33:11 +0100 |
commit | fda36d376057cbe710f89ec02d865739e02f1e61 (patch) | |
tree | 30e8bd32d2f17ce58d3473db6530774c7cb8e6f4 | |
parent | 301d58138c74799251467920fe3e9a7b86b3ae7f (diff) |
Restrict exceptions from ClassFileTree.close()
Otherwise using ClassFileTree in a try-with-resources block is
frustrating.
-rw-r--r-- | abi-check-plugin/src/main/java/com/yahoo/abicheck/classtree/ClassFileTree.java | 2 |
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 { |