Use Files.newBufferedWriter

jSparrow 3.22.0 & jSparrow Maven Plugin 2.19.0 released

jSparrow introduces the new rule Use Files.newBufferedWriter for optimizing the I/O operations on text files!

Use Files.newBufferedWriter

This rule makes use of the Files.newBufferedWriter method for initializing BufferedWriter objects to write text files in an efficient manner. For instance, the following code:

is refactored to:

Find out more information in the Release Notes for jSparrow Eclipse and jSparrow Maven

This brings jSparrow to a total of 86 automatic refactoring rules!

“Simplicity is prerequisite for reliability.” ― Edsger W. Dijkstra

Happy Coding!

Promotion pop-up

jSparrow 22% off promotion image