Community
Participate
Working Groups
Build N20050518-0010 I still get the "Non-externalized string literal" warning, with @SuppressWarnings("all") it disappears though. Since I don't get the "unhandled warning token" warning, I suppose "nls" is the correct warning name.
Not all warnings are supported yet. See bug 83739 comment 14. Only "all", "unchecked", "deprecation", "finally" and "serial" are sypported for now. Update title accordingly.
Actually, they are all supported now, check build notes from M7 build: http://download.eclipse.org/downloads/drops/S-3.1M7-200505131415/buildnotes/buildnotes_jdt-core.html The supported warning tokens are listed in v_555 entry. We are trying to make these more intuitive. "nls" should work. Could you provide steps to reproduce this issue ?
// Example: // (the "Usage of non-externalized strings" warning in the code style section has to be enabled for project or workspace first) package test; @SuppressWarnings("nls") //$NON-NLS-1$ public class Test { private String foo = "foo"; // warning should be suppressed here... }
This should indeed work.
*** This bug has been marked as a duplicate of 96974 ***
Verified for 3.1 RC2 using build N20050608-0010