Branch: refs/heads/master
  Home:   https://github.com/jenkinsci/jenkins
  Commit: 145c606e83498ca39430d7d3969c50418b26b925
      
https://github.com/jenkinsci/jenkins/commit/145c606e83498ca39430d7d3969c50418b26b925
  Author: Daniel Trebbien <dtrebb...@gmail.com>
  Date:   2018-03-08 (Thu, 08 Mar 2018)

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

  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 
to jenkinsci-commits+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to