Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-20441

Use checkstyle to ban imports from commons-lang 2

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • dependencies, test
    • None

    Description

      We updated to commons-lang 3 in HBASE-18674 but we've regressed:

      $ git grep org.apache.commons.lang\\.
      hbase-common/src/main/java/org/apache/hadoop/hbase/net/Address.java:import org.apache.commons.lang.StringUtils;
      hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/FileArchiverNotifierFactoryImpl.java:import org.apache.commons.lang.builder.HashCodeBuilder;
      hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/FileArchiverNotifierImpl.java:import org.apache.commons.lang.builder.HashCodeBuilder;
      hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestHdfsSnapshotHRegion.java:import org.apache.commons.lang.StringUtils;
      hbase-server/src/test/java/org/apache/hadoop/hbase/util/compaction/TestMajorCompactionRequest.java:import org.apache.commons.lang.RandomStringUtils;
      

      we should add the same kind of check as we do for e.g. hadoop annotations.

      Attachments

        1. HBASE-20441.master.001.patch
          1 kB
          Balazs Meszaros

        Activity

          People

            meszibalu Balazs Meszaros
            busbey Sean Busbey
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: