mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-12 02:35:37 +02:00
Remove unnecessary @SuppressWarnings
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
This commit is contained in:
parent
87a29d31aa
commit
be8aecb3af
3 changed files with 0 additions and 5 deletions
|
@ -24,7 +24,6 @@ public final class StringSetSerializer {
|
|||
|
||||
public static String serialize(Set<String> strings) {
|
||||
Assert.isLegal(strings != null);
|
||||
@SuppressWarnings("null")
|
||||
StringBuffer buf= new StringBuffer(strings.size() * 20);
|
||||
for (Iterator<String> it= strings.iterator(); it.hasNext();) {
|
||||
buf.append(it.next());
|
||||
|
|
|
@ -100,7 +100,6 @@ public final class RulerColumnDescriptor {
|
|||
fIsGlobal= helper.getDefaultAttribute(GLOBAL, true);
|
||||
fIncludeInMenu= helper.getDefaultAttribute(INCLUDE_IN_MENU, true);
|
||||
|
||||
@SuppressWarnings("null")
|
||||
IConfigurationElement[] targetEditors= element.getChildren(TARGET_ID);
|
||||
IConfigurationElement[] targetClasses= element.getChildren(TARGET_CLASS);
|
||||
|
||||
|
@ -213,7 +212,6 @@ public final class RulerColumnDescriptor {
|
|||
Assert.isLegal(disassembly != null);
|
||||
RulerColumnTarget target= getTarget();
|
||||
|
||||
@SuppressWarnings("null")
|
||||
IWorkbenchPartSite site= disassembly.getSite();
|
||||
if (site != null && target.matchesEditorId(site.getId()))
|
||||
return true;
|
||||
|
|
|
@ -46,7 +46,6 @@ public final class RulerColumnPreferenceAdapter {
|
|||
* @param descriptor a ruler contribution descriptor
|
||||
* @return <code>true</code> if the ruler is enabled, <code>false</code> otherwise
|
||||
*/
|
||||
@SuppressWarnings("null")
|
||||
public boolean isEnabled(RulerColumnDescriptor descriptor) {
|
||||
Assert.isLegal(descriptor != null);
|
||||
String preference= fStore.getString(fKey);
|
||||
|
@ -62,7 +61,6 @@ public final class RulerColumnPreferenceAdapter {
|
|||
*/
|
||||
public void setEnabled(RulerColumnDescriptor descriptor, boolean enabled) {
|
||||
Assert.isLegal(descriptor != null);
|
||||
@SuppressWarnings("null")
|
||||
String id= descriptor.getId();
|
||||
String preference= fStore.getString(fKey);
|
||||
Set<String> marked= StringSetSerializer.deserialize(preference);
|
||||
|
|
Loading…
Add table
Reference in a new issue