Community
Participate
Working Groups
M2 - Enable warnings for non-externalized strings - create this Java class: public class Test { public void test() { "foo".equals("bar"); //; } } Observe: there are no NLS warnings for the two strings - uncomment the semicolon Observe: now there are two warnings
David, I changed this method protected void checkNonNLSAfterBodyEnd(int) by replacing < with <= and the problem is fixed. All tests passed. You might want to add regression tests. I will attach the patch file that you need to apply directly on the Parser class.
Created attachment 5805 [details] Patch for this bug Apply this patch by selecting the Parser class and run the "Team>Apply patch..." tool.
Patch released and regression test added (ParserTest#test012 and ParserTest#test013). Fixed.
Verified.