RFR/RFC (M) 7902575: Various code cleanups
Henri Tremblay
henri.tremblay at gmail.com
Wed Jan 22 21:03:24 UTC 2020
Yes. Indeed. You don't have the cool Files.lines() yet.
On Tue, 21 Jan 2020 at 11:12, Aleksey Shipilev <shade at redhat.com> wrote:
> 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