8280010: Remove double buffering of InputStream for Properties.load

Reviewed-by: amenkov, sspitsyn, serb
This commit is contained in:
Andrey Turbanov 2022-01-18 15:49:03 +00:00
parent 64c0c0e109
commit 9eb50a5ee4
8 changed files with 19 additions and 30 deletions

View file

@ -244,8 +244,8 @@ public class MimeTable implements FileNameMap {
throw new InternalError("default mime table not found");
}
try (BufferedInputStream bin = new BufferedInputStream(in)) {
entries.load(bin);
try (in) {
entries.load(in);
} catch (IOException e) {
System.err.println("Warning: " + e.getMessage());
}