Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-522

Documentation example does not compile

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1
    • Component/s: List
    • Labels:
      None

      Description

      There is an example in the javadoc of PredicatedList which doesn't compile:

      // PredicatedList.java line 36 in the commons-collections4-4.0
      List list = PredicatedList.decorate(new ArrayList(), NotNullPredicate.INSTANCE);

      // The method decorate does not exist, I presume it has been renamed to:
      List list = PredicatedList.predicatedList(new ArrayList(), NotNullPredicate.INSTANCE);

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              koekoekie Erik
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: