Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
Writer w = new OutputStreamWriter(new FileOutputStream(file), "UTF-8");
Could be refactored to this to improve a little bit performance due to avoid string lookup:
Writer w = new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8);