diff options
author | gjoranv <gv@verizonmedia.com> | 2019-10-23 12:36:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-23 12:36:36 +0200 |
commit | 6eb1570a8cbb457bf81e37b9d718f61f090b4a1c (patch) | |
tree | 726f71192a3772bcd3b12592bde9dcb7ddb7571b /bundle-plugin/src/main/java/com/yahoo/container/plugin/util/IO.java | |
parent | e87cd4be6d717807246d20204954739118160126 (diff) | |
parent | 3f98c0cea7437fc55721f6e18025a0047b27d47f (diff) |
Merge pull request #11058 from vespa-engine/gjoranv/artifact-version-for-exports4
Gjoranv/artifact version for exports4
Diffstat (limited to 'bundle-plugin/src/main/java/com/yahoo/container/plugin/util/IO.java')
-rw-r--r-- | bundle-plugin/src/main/java/com/yahoo/container/plugin/util/IO.java | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/bundle-plugin/src/main/java/com/yahoo/container/plugin/util/IO.java b/bundle-plugin/src/main/java/com/yahoo/container/plugin/util/IO.java index a1e313b920b..654fb700a43 100644 --- a/bundle-plugin/src/main/java/com/yahoo/container/plugin/util/IO.java +++ b/bundle-plugin/src/main/java/com/yahoo/container/plugin/util/IO.java @@ -13,13 +13,6 @@ import java.io.OutputStream; * @author ollivir */ public class IO { - public static <T> T withFileInputStream(File file, ThrowingFunction<FileInputStream, T> f) { - try (FileInputStream fis = new FileInputStream(file)) { - return f.apply(fis); - } catch (Exception e) { - throw new RuntimeException(e); - } - } /** * Creates a new file and all its parent directories, and provides a file output stream to the file. |