Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2017-01-11 20:42:01 +0000
committerLars Vogel2017-01-11 20:42:01 +0000
commit1e5d8f21feb0e2fe7c1bdc264d01677edde4365b (patch)
tree41d904986cceee1564067b1d53f718a77f279c98 /org.eclipse.ui.editors
parentf4fbf4ecf56758b9443f635bf187d4638a99e91e (diff)
downloadeclipse.platform.text-1e5d8f21feb0e2fe7c1bdc264d01677edde4365b.tar.gz
eclipse.platform.text-1e5d8f21feb0e2fe7c1bdc264d01677edde4365b.tar.xz
eclipse.platform.text-1e5d8f21feb0e2fe7c1bdc264d01677edde4365b.zip
Bug 510312 - Replace usage of new Integer(int) with Integer.valueOf() in
eclipse.platform.text plug-ins - Part 1 Change-Id: I8cd43f97a0e3d4ea32e11a2b3cf8898b6be3bc5c Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'org.eclipse.ui.editors')
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractMarkerAnnotationModel.java6
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/ChainedPreferenceStore.java2
2 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractMarkerAnnotationModel.java b/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractMarkerAnnotationModel.java
index f24c70aee..af3041135 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractMarkerAnnotationModel.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/AbstractMarkerAnnotationModel.java
@@ -273,7 +273,7 @@ public abstract class AbstractMarkerAnnotationModel extends AnnotationModel impl
IConfigurationElement[] elements= extensionPoint.getConfigurationElements();
for (int i= 0; i < elements.length; i++) {
markerUpdaterSpecificationsLinkedList.add(elements[i]);
- markerUpdaterOrderMap.put(elements[i].getAttribute(ID), new Integer(i));
+ markerUpdaterOrderMap.put(elements[i].getAttribute(ID), Integer.valueOf(i));
}
//start sorting based on required-updater definition
HashMap<String, ArrayList<String>> markerUpdaterRequiredByOrderMap= new HashMap<>(2);
@@ -319,8 +319,8 @@ public abstract class AbstractMarkerAnnotationModel extends AnnotationModel impl
.getAttribute(ID)).intValue() - 1);
IConfigurationElement requiredMarker= markerUpdaterSpecificationsLinkedList.remove(requiredLocation.intValue());
markerUpdaterSpecificationsLinkedList.add(newLocation, requiredMarker); // Put the required location before the marker
- markerUpdaterOrderMap.put(requiredID, new Integer(newLocation));
- markerUpdaterOrderMap.put(elements[i].getAttribute(ID), new Integer(newLocation + 1));
+ markerUpdaterOrderMap.put(requiredID, Integer.valueOf(newLocation));
+ markerUpdaterOrderMap.put(elements[i].getAttribute(ID), Integer.valueOf(newLocation + 1));
}
}
}
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/ChainedPreferenceStore.java b/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/ChainedPreferenceStore.java
index 7f4e30cd2..1a9fb178e 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/ChainedPreferenceStore.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/ChainedPreferenceStore.java
@@ -438,7 +438,7 @@ public class ChainedPreferenceStore implements IPreferenceStore {
else if (thisValue instanceof Float)
return new Float(store.getFloat(property));
else if (thisValue instanceof Integer)
- return new Integer(store.getInt(property));
+ return Integer.valueOf(store.getInt(property));
else if (thisValue instanceof Long)
return new Long(store.getLong(property));
else if (thisValue instanceof String)

Back to the top