Document some suggested compile warnings for Eclipse. Suggested by: bobv git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@5671 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/eclipse/README.txt b/eclipse/README.txt index f85c7ed..c75825c 100644 --- a/eclipse/README.txt +++ b/eclipse/README.txt
@@ -73,6 +73,34 @@ Window->Preferences->Java->Compiler Set the compiler compliance level to 1.5. +------- Compiler errors & warnings -------- +Window->Preferences->Java->Compiler->Errors/Warnings + +The following warnings are suggested. + +Code Style: +- Method with a constructor name + +Potential programming problems: +- Assignment has no effect +- Accidental boolean assignment +- 'finally' does not complete normally +- Using a char array in string concatentation +- Hidden catch block +- Inexact type match for vararg arguments + +Name shadowing and conflicts: all except "Local variable" hiding + +Deprecated and restricted API: all + +Unnecessary code: all except "Unnecessary 'else' statement" + +Generic types: all except "Generic type parameter declared with final type bound" + +Annotations: +- Annotation is used as super interface +- Enable @SuppressWarnings annotations + == Checkstyle == Checkstyle is used to enforce good programming style.