It would be nice if the javac compiler could give warnings similiar
to gcc -Wall. The following two items were suggested by a licensee :-
1. Generate warning if there are unused local members or arguments
2. Generate warning for "x = x" occurences which often is a source
error where the programmer has actually intended "this.x = x", eg:-
private int count;
public void setCount( int count ) {
count = count; // should be this.count = count;
}
- duplicates
-
JDK-4128179 # Add a lint-like facility to javac
-
- Closed
-