From a706c743966329bf543867f8e6a35239daf566f4 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sat, 12 Nov 2011 17:44:43 -0500 Subject: [PATCH] move new BufferedInputStream inside try{} block Not sure this makes any material difference. --- src/main/java/com/typesafe/config/impl/Parser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/typesafe/config/impl/Parser.java b/src/main/java/com/typesafe/config/impl/Parser.java index 3943cd8e..591d4112 100644 --- a/src/main/java/com/typesafe/config/impl/Parser.java +++ b/src/main/java/com/typesafe/config/impl/Parser.java @@ -90,8 +90,9 @@ final class Parser { URL url, IncludeHandler includer) { AbstractConfigValue result = null; try { - InputStream stream = new BufferedInputStream(url.openStream()); + InputStream stream = url.openStream(); try { + stream = new BufferedInputStream(stream); result = parse( flavor != null ? flavor : flavorFromExtension( url.getPath(), origin), origin, stream,