Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-19149

Clean up Ambari Server source code warnings

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • ambari-server
    • None

    Description

      Eclipse's default warnings generated for ambari-server number roughly over 3300. Out of these, at least half of them are:

      • Unused imports
      • Type safety due to forgotten <>
      • Missing Serialization IDs from anonymous HashMap implementations
      • Unused variables
      • Capture<T> in tests
      • switch fall-through and missing case statements: only makes changes which won't affect existing functionality

      This makes spotting actual problems, like missing case statements a nightmare. We need to go through and clean out as many of these warnings as possible.

      Note: With respect to the import cleanup, the IDE of choice should have the following import order setup. They should always be expanded and never use *.

      1. java
      2. javax
      3. org
      4. com
      5. other

      Attachments

        1. IDEA_Ambari_v1.xml
          0.8 kB
          Attila Doroszlai
        2. AMBARI-19149-1.patch
          1.40 MB
          Attila Doroszlai
        3. AMBARI-19149-3.patch
          26 kB
          Attila Doroszlai
        4. AMBARI-19149-4.patch
          343 kB
          Attila Doroszlai
        5. AMBARI-19149-5.patch
          50 kB
          Attila Doroszlai
        6. AMBARI-19149-6.patch
          48 kB
          Attila Doroszlai
        7. AMBARI-19149-7.patch
          2.44 MB
          Attila Doroszlai
        8. AMBARI-19149-9.patch
          20 kB
          Attila Doroszlai
        9. AMBARI-19149-10.patch
          138 kB
          Attila Doroszlai
        10. AMBARI-19149-11.patch
          49 kB
          Attila Doroszlai
        11. AMBARI-19149-12.patch
          1.23 MB
          Attila Doroszlai
        12. AMBARI-19149-13.patch
          26 kB
          Attila Doroszlai
        13. AMBARI-19149-14.patch
          298 kB
          Attila Doroszlai

        Activity

          People

            adoroszlai Attila Doroszlai
            adoroszlai Attila Doroszlai
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: