XalanJ2
  1. XalanJ2
  2. XALANJ-2554

Inconsistent Javadoc comment and code for setOutput(OutputProperties) in org.apache.xalan.templates.Stylesheet

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.7.1, 2.7
    • Fix Version/s: None
    • Component/s: Xalan
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • Labels:
    • Environment:
      Platform Independent

      Description

      The Javadoc comment below states that the parameter v is a "non-null reference to the OutputProperties object to be added to the collection":
      /**
      ...

      • @param v non-null reference to the OutputProperties object to be
      • added to the collection.
        */
        public void setOutput(OutputProperties v)
        However, the method return normally without throwing any exception when called with a null v.

      Suggested Fixes:
      1. Change "@param v non-null reference to the OutputProperties object to be added to the collection." to "@param v reference to the OutputProperties object to be added to the collection,null will be ignored."
      or
      2. Remove "non-null" from @param.

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            SHIN HWEI TAN
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Time Tracking

              Estimated:
              Original Estimate - 0.05h
              0.05h
              Remaining:
              Remaining Estimate - 0.05h
              0.05h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development