mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8280010: Remove double buffering of InputStream for Properties.load
Reviewed-by: amenkov, sspitsyn, serb
This commit is contained in:
parent
64c0c0e109
commit
9eb50a5ee4
8 changed files with 19 additions and 30 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -1381,8 +1381,7 @@ public class LogManager {
|
|||
|
||||
String fname = getConfigurationFileName();
|
||||
try (final InputStream in = new FileInputStream(fname)) {
|
||||
final BufferedInputStream bin = new BufferedInputStream(in);
|
||||
readConfiguration(bin);
|
||||
readConfiguration(in);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1877,8 +1876,7 @@ public class LogManager {
|
|||
|
||||
String fname = getConfigurationFileName();
|
||||
try (final InputStream in = new FileInputStream(fname)) {
|
||||
final BufferedInputStream bin = new BufferedInputStream(in);
|
||||
updateConfiguration(bin, mapper);
|
||||
updateConfiguration(in, mapper);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue