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

Clean up useless code in class TestSqoopJsonUtil

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.4.6
    • Fix Version/s: 1.4.7
    • Component/s: None
    • Labels:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: