mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-12 10:45: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) {
|
public static String serialize(Set<String> strings) {
|
||||||
Assert.isLegal(strings != null);
|
Assert.isLegal(strings != null);
|
||||||
@SuppressWarnings("null")
|
|
||||||
StringBuffer buf= new StringBuffer(strings.size() * 20);
|
StringBuffer buf= new StringBuffer(strings.size() * 20);
|
||||||
for (Iterator<String> it= strings.iterator(); it.hasNext();) {
|
for (Iterator<String> it= strings.iterator(); it.hasNext();) {
|
||||||
buf.append(it.next());
|
buf.append(it.next());
|
||||||
|
|
|
@ -100,7 +100,6 @@ public final class RulerColumnDescriptor {
|
||||||
fIsGlobal= helper.getDefaultAttribute(GLOBAL, true);
|
fIsGlobal= helper.getDefaultAttribute(GLOBAL, true);
|
||||||
fIncludeInMenu= helper.getDefaultAttribute(INCLUDE_IN_MENU, true);
|
fIncludeInMenu= helper.getDefaultAttribute(INCLUDE_IN_MENU, true);
|
||||||
|
|
||||||
@SuppressWarnings("null")
|
|
||||||
IConfigurationElement[] targetEditors= element.getChildren(TARGET_ID);
|
IConfigurationElement[] targetEditors= element.getChildren(TARGET_ID);
|
||||||
IConfigurationElement[] targetClasses= element.getChildren(TARGET_CLASS);
|
IConfigurationElement[] targetClasses= element.getChildren(TARGET_CLASS);
|
||||||
|
|
||||||
|
@ -213,7 +212,6 @@ public final class RulerColumnDescriptor {
|
||||||
Assert.isLegal(disassembly != null);
|
Assert.isLegal(disassembly != null);
|
||||||
RulerColumnTarget target= getTarget();
|
RulerColumnTarget target= getTarget();
|
||||||
|
|
||||||
@SuppressWarnings("null")
|
|
||||||
IWorkbenchPartSite site= disassembly.getSite();
|
IWorkbenchPartSite site= disassembly.getSite();
|
||||||
if (site != null && target.matchesEditorId(site.getId()))
|
if (site != null && target.matchesEditorId(site.getId()))
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -46,7 +46,6 @@ public final class RulerColumnPreferenceAdapter {
|
||||||
* @param descriptor a ruler contribution descriptor
|
* @param descriptor a ruler contribution descriptor
|
||||||
* @return <code>true</code> if the ruler is enabled, <code>false</code> otherwise
|
* @return <code>true</code> if the ruler is enabled, <code>false</code> otherwise
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("null")
|
|
||||||
public boolean isEnabled(RulerColumnDescriptor descriptor) {
|
public boolean isEnabled(RulerColumnDescriptor descriptor) {
|
||||||
Assert.isLegal(descriptor != null);
|
Assert.isLegal(descriptor != null);
|
||||||
String preference= fStore.getString(fKey);
|
String preference= fStore.getString(fKey);
|
||||||
|
@ -62,7 +61,6 @@ public final class RulerColumnPreferenceAdapter {
|
||||||
*/
|
*/
|
||||||
public void setEnabled(RulerColumnDescriptor descriptor, boolean enabled) {
|
public void setEnabled(RulerColumnDescriptor descriptor, boolean enabled) {
|
||||||
Assert.isLegal(descriptor != null);
|
Assert.isLegal(descriptor != null);
|
||||||
@SuppressWarnings("null")
|
|
||||||
String id= descriptor.getId();
|
String id= descriptor.getId();
|
||||||
String preference= fStore.getString(fKey);
|
String preference= fStore.getString(fKey);
|
||||||
Set<String> marked= StringSetSerializer.deserialize(preference);
|
Set<String> marked= StringSetSerializer.deserialize(preference);
|
||||||
|
|
Loading…
Add table
Reference in a new issue