RFR/RFC (M) 7902575: Various code cleanups
Aleksey Shipilev
shade at redhat.com
Tue Jan 21 16:12:08 UTC 2020
On 1/21/20 3:19 PM, Henri Tremblay wrote:
> public static Collection<String> readAllLines(File file) throws IOException {
> return Files.readAllLines(file.toPath());
> }
>
> public static void writeLines(File file, Collection<String> lines) throws IOException {
> Files.write(file.toPath(), lines);
> }
I see. Does not seem to worth the hassle at this point. JMH targets 1.7, so it would have to use
Files.readAllLines(Path,Charset).
-Aleksey
More information about the jmh-dev
mailing list