mirror of
https://github.com/lightbend/config.git
synced 2025-01-08 19:30:21 +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) {
|
URL url, IncludeHandler includer) {
|
||||||
AbstractConfigValue result = null;
|
AbstractConfigValue result = null;
|
||||||
try {
|
try {
|
||||||
InputStream stream = new BufferedInputStream(url.openStream());
|
InputStream stream = url.openStream();
|
||||||
try {
|
try {
|
||||||
|
stream = new BufferedInputStream(stream);
|
||||||
result = parse(
|
result = parse(
|
||||||
flavor != null ? flavor : flavorFromExtension(
|
flavor != null ? flavor : flavorFromExtension(
|
||||||
url.getPath(), origin), origin, stream,
|
url.getPath(), origin), origin, stream,
|
||||||
|
Loading…
Reference in New Issue
Block a user