Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6952998

most classes in the java.util.zip package do not specify null argument behavior

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • tbd
    • 7
    • core-libs

      According to "Requirements for Writing Java API Specifications"[1]:
        --- cut --
        Method Specification

          This section applies to Java methods and constructors. Each method and
          constructor specification must include:
             ...
             4. Null Argument Values - For each reference type argument, specify the
                behavior when null is passed in. See two examples. NOTE: If possible,
                document the general null argument behavior at the package or class
                level, such as causing a java.lang.NullPointerException to be thrown.
                Deviations from this behavior can then be documented at the method
                level.
        --- cut --
      such cases should be described in the appropriate javadoc(s).

      [1] http://java.sun.com/j2se/javadoc/writingapispecs/index.html#method

            jpai Jaikiran Pai
            ygaevsky Yuri Gaevsky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: