move into try with resource catch
This commit is contained in:
parent
09fedd03dc
commit
87b6ee3170
@ -58,7 +58,7 @@ public class SortableProperties extends Properties {
|
||||
}
|
||||
|
||||
public void store(Writer writer) throws IOException {
|
||||
IntelliJBufferedWriter bw = new IntelliJBufferedWriter(writer);
|
||||
try(IntelliJBufferedWriter bw = new IntelliJBufferedWriter(writer)) {
|
||||
boolean escUnicode = false;
|
||||
|
||||
synchronized (this) {
|
||||
@ -76,6 +76,7 @@ public class SortableProperties extends Properties {
|
||||
}
|
||||
bw.flush();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Converts unicodes to encoded \uxxxx and escapes
|
||||
|
Loading…
x
Reference in New Issue
Block a user