diff options
author | Thomas Watson | 2014-04-28 14:46:13 +0000 |
---|---|---|
committer | Thomas Watson | 2014-04-28 14:46:13 +0000 |
commit | 274e3daa1d2ba8a66361aa67842499676584fe8a (patch) | |
tree | c21f7ab86e3a0e0a70587c67f8d30160af354ff2 | |
parent | df0a2bd47e475887ab02be8ae9f7c76f77e06bbd (diff) | |
download | rt.equinox.framework-274e3daa1d2ba8a66361aa67842499676584fe8a.tar.gz rt.equinox.framework-274e3daa1d2ba8a66361aa67842499676584fe8a.tar.xz rt.equinox.framework-274e3daa1d2ba8a66361aa67842499676584fe8a.zip |
Bug 433424 - NLS class bark for key that cannot be java field name, or
need
-rw-r--r-- | bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/util/NLS.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/util/NLS.java b/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/util/NLS.java index 6ea30e2a7..9caef08f5 100644 --- a/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/util/NLS.java +++ b/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/util/NLS.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2013 IBM Corporation and others. + * Copyright (c) 2005, 2014 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -412,7 +412,10 @@ public abstract class NLS { final String msg = "NLS unused message: " + key + " in: " + bundleName;//$NON-NLS-1$ //$NON-NLS-2$ if (SupplementDebug.STATIC_DEBUG_MESSAGE_BUNDLES) System.out.println(msg); - log(SEVERITY_WARNING, msg, null); + // keys with '.' are ignored by design (bug 433424) + if (key instanceof String && ((String) key).indexOf('.') < 0) { + log(SEVERITY_WARNING, msg, null); + } return null; } final Field field = (Field) fieldObject; |