Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for FilesLinesLeak (0.09 sec)

  1. android/guava/src/com/google/common/io/MoreFiles.java

            // like following/not following symlinks.)
            return new AsCharSource(charset) {
              @SuppressWarnings({
                "FilesLinesLeak", // the user needs to close it in this case
                /*
                 * If users use this when they shouldn't, we hope that NewApi will catch subsequent
                 * Stream calls.
                 *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 35K bytes
    - Viewed (0)
  2. guava/src/com/google/common/io/MoreFiles.java

            // overload taking OpenOptions, meaning we can't guarantee the same behavior w.r.t. things
            // like following/not following symlinks.)
            return new AsCharSource(charset) {
              @SuppressWarnings("FilesLinesLeak") // the user needs to close it in this case
              @Override
              public Stream<String> lines() throws IOException {
                return Files.lines(path, charset);
              }
            };
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 34.5K bytes
    - Viewed (0)
Back to top