Community
Participate
Working Groups
From bug 97220, the detection of nls warnings should not be done within annotation declarations. import java.lang.annotation.*; @Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.CONSTRUCTOR, ElementType.LOCAL_VARIABLE, ElementType.PACKAGE}) @Retention(RetentionPolicy.CLASS) public @interface MySuppressWarnings { String[] value() default {}; String justification() default ""; } The default value for justification should not be tagged as non-nls string.
We should consider only the range of each annotation type member declaration.
Fixed and released in HEAD. Regression test in org.eclipse.jdt.core.tests.compiler.regression.ExternalizeStringLiterals15Test.test001
Verified for 3.2 M3 using build I20051031-0010