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

Documentation example does not compile

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment