code-tutorial.com

The best resources for developers

What tools are good for code analysis?

/absolute-path/filename:line-number:column-number: warning(tool-name): message
/project/src/com/example/Foo.java:425:9: warning(Checkstyle):Missing a Javadoc comment.
// SuppressWarnings(PMD.PreserveStackTrace) justification: (false positive) exceptions are chained
@SuppressWarnings("PMD.CompareObjectsWithEquals") // justification: identity comparision intended
// BEGIN SuppressWarnings(Checkstyle.HiddenField) justification: "Effective Java," 2nd ed., Bloch, Item 2
// END SuppressWarnings(Checkstyle.HiddenField)
@edu.umd.cs.findbugs.annotations.SuppressWarnings("UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR")

Tags: java static-analysis code-coverage

Source: By Joshua McKinnon as answer to the question

This code snippet was collected from stackoverflow, and is licensed under CC BY-SA 2.5


Related code-snippets: