Deprecate in Java 1.6
- by iano
In Java 1.5, to deprecate a method you would:
@Deprecated int foo(int bar) {
}
Compiling this in Java 1.6 results in the following:
Syntax error, annotations are only
available if source level is 1.5
Any ideas?