mirror of
https://github.com/lightbend/config.git
synced 2025-01-07 19:00:09 +08:00
move new BufferedInputStream inside try{} block
Not sure this makes any material difference.
This commit is contained in:
parent
d5fba4b8a7
commit
a706c74396
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user