Branch: refs/heads/master
  Commit: 145c606e83498ca39430d7d3969c50418b26b925
  Author: Daniel Trebbien <>
  Date:   2018-03-08 (Thu, 08 Mar 2018)

  Changed paths:
    M core/src/main/java/hudson/util/
    M core/src/main/java/jenkins/security/s2m/
    A core/src/main/java/jenkins/util/io/

  Log Message:
  Refactor TextFile.lines() (#3211)

* Refactor TextFile.lines()

Introduces a LinesStream utility class that is responsible for closing
the underlying file handle.

Switches to calling Files.newBufferedReader() instead of wrapping the
InputStream returned by Files.newInputStream() in a BufferedReader of
an InputStreamReader.

Creates the file reader at the time that lines() is invoked, instead of
at the time that iterator() of the returned Iterable is invoked. This
can help prevent confusion as to the cause of an exception, whether it's
because of a problem opening the file or reading from it.

* Delete a duplicate import and a now-unused import

* Introduce load2()

* Add a @Deprecated annotation

You received this message because you are subscribed to the Google Groups 
"Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
For more options, visit

Reply via email to