Java Warnings in Eclipse

Java/Javadoc Warnings and Errors

  • Pattern for removing all javadoc: /\*\*(?s:(?!\*/).)*\*/

  • Configure Java warnings/errors according to spec

    • All warnings (including missing javadoc) should be resolved before commits occur

    • Keep these ignored, everything else should be set to warning (leave error as is). Do not check additional boxes

      • Code Style

        • Unqualified access to instance field

        • Access to a non-accessable member of an enclosing class

        • Non-externalized strings

        • Method can be static

        • Method can be potentially static

      • Potential programming problems

        • Boxing and unboxing conversions

        • Serialized class without serialVersionUID

      • Name shadowing and conflicts

        • Field declaration hides another field or variable

        • Local variable declaration hides another field or variable

      • Deprecated and restricted API

      • Modules

      • Unnecessary code

        • Value of exception parameter is not used

        • Unnecessary else statement

      • Generic Types

        • Redundant type arguments

      • Annotations

        •  

      • Null analysis

  • Configure Javadoc warnings

    • Java -> Compiler -> Javadoc

    • Set everything that's "ignore" to "warning" and check all boxes.

    • Set "members as visible as" to "private".

    •  

  • Code and XML Formatting in Eclipse (includes jautodoc configuration)