Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-66

Document null return value of ArchiveInputStream.getNextEntry

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.0
    • None
    • None

    Description

      The ArchiveInputStream.getNextEntry method should mention that the return value will be null when there are no more entries in the archive stream.

      Index: src/main/java/org/apache/commons/compress/archivers/ArchiveInputStream.java
      ===================================================================
      --- src/main/java/org/apache/commons/compress/archivers/ArchiveInputStream.java (revision 760154)
      +++ src/main/java/org/apache/commons/compress/archivers/ArchiveInputStream.java (working copy)
      @@ -43,8 +43,10 @@
           private static final int BYTE_MASK = 0xFF;
      
           /**
      -     * Returns the next Archive Entry in this Stream.
      -     * @return the next entry
      +     * Returns the next Archive Entry in this Stream.
      +     *
      +     * @return the next entry,
      +     *         or <code>null</code> if there are no more entries
            * @throws IOException if the next entry could not be read
            */
           public abstract ArchiveEntry getNextEntry() throws IOException;
      

      Attachments

        Activity

          People

            jukkaz Jukka Zitting
            jukkaz Jukka Zitting
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: