Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-22202

Remove unnecessary code from ObjectStore.java

    XMLWordPrintableJSON

    Details

      Description

      Remove unnecessary code

      • remove unnecessary/unused variables
      • remove unused private methods
      • remove unnecessary throws declarations
      • remove unnecessary conditionals that are guaranteed to always give the same result
      • simplify collection handling
        • use member sort() instead of Collections.sort()
        • use addAll() instead of adding one-by-one in a loop
      • remove Javadoc that doesn't give additional information
      • use try with resource where possible
      • remove unnecessary explicit type arguments
      • remove redundant warning suppression

        Attachments

        1. HIVE-22202.3.patch
          85 kB
          Hankó Gergely
        2. HIVE-22202.2.patch
          84 kB
          Hankó Gergely
        3. HIVE-22202.1.patch
          73 kB
          Hankó Gergely

          Activity

            People

            • Assignee:
              ghanko Hankó Gergely
              Reporter:
              ghanko Hankó Gergely
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: