I call javac from my ant script like this:
To prevent deprecation warnings I tried to do it using JDK 6 and JDK 7.
With JDK 7, @Deprecated annotation does the work
With JDK 6, it does not work, neither adding -Xlint:-deprecation param works for me. The only way I managed to remove the warning was using the @deprecated Javadoc Tag:
/**
* @deprecated
*/
@Override
public void removeValue(String arg0) {
// TODO Auto-generated method stub
}