Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-2795

Clean up useless code in class TestSqoopJsonUtil

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.4.6
    • 1.4.7
    • None

    Description

      The import in line 7 is never used. The field in line 13 is not used, and methods in class SqoopJsonUtil are all static, so any intance of SqoopJsonUtil is unnecessary.
      According to Sonar rule squid:S1118 - Utility classes should not have public constructors
      You can find more information about the issue here:
      https://dev.eclipse.org/sonar/coding_rules#q=squid:S1118

      Attachments

        1. SQOOP-2795.0000.patch
          0.9 kB
          Ze Jin
        2. SQOOP-2795.0001.patch
          1 kB
          Ze Jin

        Activity

          People

            kingzone Ze Jin
            kingzone Ze Jin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: