Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-2554

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.7.1, 2.7
    • None
    • Xalan
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            shinhwei 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