Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9621

Remove several guava, apache commons calls in favor of java 8 alternatives

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 6.4
    • None
    • None

    Description

      Now that Solr is against Java 8, we can take advantage of replacing some guava and apache commons calls with JDK standards. I'd like to start by replacing the following:

      com.google.common.base.Supplier -> java.util.function.Supplier
      com.google.common.base.Predicate -> java.util.function.Predicate
      com.google.common.base.Charsets -> java.nio.charset.StandardCharsets
      org.apache.commons.codec.Charsets -> java.nio.charset.StandardCharsets
      com.google.common.collect.Ordering -> java.util.Comparator
      com.google.common.base.Joiner -> java.util.stream.Collectors::joining
      com.google.common.base.Function -> java.util.function.Function
      com.google.common.base.Preconditions::checkNotNull -> java.util.Objects::requireNonNull
      com.google.common.base.Objects::equals -> java.util.Objects::equals
      com.google.common.base.Objects::hashCode -> java.util.Objects::hashCode

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            dsmiley David Smiley Assign to me
            mbraun688 Michael Braun
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment