Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-17098 Reduce Guava dependency in Hadoop source code
  3. HADOOP-17102

Add checkstyle rule to prevent further usage of Guava classes

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Done
    • None
    • None
    • build, precommit
    • None

    Description

      We should have precommit rules to prevent further usage of Guava classes that are available in Java8+

      A list replacing Guava APIs with java8 features:

      com.google.common.io.BaseEncoding#base64()	java.util.Base64
      com.google.common.io.BaseEncoding#base64Url()	java.util.Base64
      com.google.common.base.Joiner.on()	                        java.lang.String#join() or 
                                                                                               java.util.stream.Collectors#joining()
      com.google.common.base.Optional#of()	                java.util.Optional#of()
      com.google.common.base.Optional#absent()	        java.util.Optional#empty()
      com.google.common.base.Optional#fromNullable()	java.util.Optional#ofNullable()
      com.google.common.base.Optional	                        java.util.Optional
      com.google.common.base.Predicate	                        java.util.function.Predicate
      com.google.common.base.Function	                        java.util.function.Function
      com.google.common.base.Supplier	                        java.util.function.Supplier
      

      Attachments

        1. HADOOP-17102.001.patch
          1 kB
          Ahmed Hussein
        2. HADOOP-17102.002.patch
          1 kB
          Ahmed Hussein

        Activity

          People

            ahussein Ahmed Hussein
            ahussein Ahmed Hussein
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: