Remove unnecessary @SuppressWarnings
authorMarc Khouzam <marc.khouzam@ericsson.com>
Wed, 25 Mar 2015 15:28:37 +0000 (11:28 -0400)
committerMarc Khouzam <marc.khouzam@ericsson.com>
Wed, 25 Mar 2015 15:28:37 +0000 (11:28 -0400)
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/StringSetSerializer.java
debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/disassembly/rulers/RulerColumnDescriptor.java
debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/disassembly/rulers/RulerColumnPreferenceAdapter.java

index 68f71eb..22ae33c 100644 (file)
@@ -24,7 +24,6 @@ public final class StringSetSerializer {
 \r
        public static String serialize(Set<String> strings) {\r
                Assert.isLegal(strings != null);\r
-               @SuppressWarnings("null")\r
                StringBuffer buf= new StringBuffer(strings.size() * 20);\r
                for (Iterator<String> it= strings.iterator(); it.hasNext();) {\r
                        buf.append(it.next());\r
index 48dfaef..83e6379 100644 (file)
@@ -100,7 +100,6 @@ public final class RulerColumnDescriptor {
                fIsGlobal= helper.getDefaultAttribute(GLOBAL, true);\r
                fIncludeInMenu= helper.getDefaultAttribute(INCLUDE_IN_MENU, true);\r
 \r
-               @SuppressWarnings("null")\r
                IConfigurationElement[] targetEditors= element.getChildren(TARGET_ID);\r
                IConfigurationElement[] targetClasses= element.getChildren(TARGET_CLASS);\r
 \r
@@ -213,7 +212,6 @@ public final class RulerColumnDescriptor {
                Assert.isLegal(disassembly != null);\r
                RulerColumnTarget target= getTarget();\r
 \r
-               @SuppressWarnings("null")\r
                IWorkbenchPartSite site= disassembly.getSite();\r
                if (site != null && target.matchesEditorId(site.getId()))\r
                        return true;\r
index b924ec4..6af5fa2 100644 (file)
@@ -46,7 +46,6 @@ public final class RulerColumnPreferenceAdapter {
         * @param descriptor a ruler contribution descriptor\r
         * @return <code>true</code> if the ruler is enabled, <code>false</code> otherwise\r
         */\r
-       @SuppressWarnings("null")\r
        public boolean isEnabled(RulerColumnDescriptor descriptor) {\r
                Assert.isLegal(descriptor != null);\r
                String preference= fStore.getString(fKey);\r
@@ -62,7 +61,6 @@ public final class RulerColumnPreferenceAdapter {
         */\r
        public void setEnabled(RulerColumnDescriptor descriptor, boolean enabled) {\r
                Assert.isLegal(descriptor != null);\r
-               @SuppressWarnings("null")\r
                String id= descriptor.getId();\r
                String preference= fStore.getString(fKey);\r
                Set<String> marked= StringSetSerializer.deserialize(preference);\r