Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2017-01-11 20:42:09 +0000
committerLars Vogel2017-01-11 20:42:09 +0000
commitaed6bdd1b13c0cebea2a20b280911a70d0b226d5 (patch)
treea1759309732d3b4a918af9adfe0b9f1bf11daf4f /org.eclipse.ui.editors
parent1e5d8f21feb0e2fe7c1bdc264d01677edde4365b (diff)
downloadeclipse.platform.text-aed6bdd1b13c0cebea2a20b280911a70d0b226d5.tar.gz
eclipse.platform.text-aed6bdd1b13c0cebea2a20b280911a70d0b226d5.tar.xz
eclipse.platform.text-aed6bdd1b13c0cebea2a20b280911a70d0b226d5.zip
Bug 510312 - Replace usage of new Integer(int) with Integer.valueOf() in
eclipse.platform.text plug-ins - Part 2 Change-Id: I3d76285a2e3333114ba56b7cd0745d13440d5a44 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/internal/editors/text/SelectResourcesDialog.java2
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/MarkerUtilities.java6
2 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/SelectResourcesDialog.java b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/SelectResourcesDialog.java
index a5596442f..5fdb94fb0 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/SelectResourcesDialog.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/SelectResourcesDialog.java
@@ -359,7 +359,7 @@ class SelectResourcesDialog extends Dialog {
buffer.append(TextEditorMessages.SelectResourcesDialog_oneFileSelected);
break;
default:
- buffer.append(NLSUtility.format(TextEditorMessages.SelectResourcesDialog_nFilesSelected, new Integer(checkedFiles)));
+ buffer.append(NLSUtility.format(TextEditorMessages.SelectResourcesDialog_nFilesSelected, Integer.valueOf(checkedFiles)));
}
fCountIndication.setText(buffer.toString());
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/MarkerUtilities.java b/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/MarkerUtilities.java
index 2ea3f56a8..366d29fa1 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/MarkerUtilities.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/MarkerUtilities.java
@@ -292,7 +292,7 @@ public final class MarkerUtilities {
* @see IMarker#CHAR_END
*/
public static void setCharEnd(Map<String, Object> map, int charEnd) {
- map.put(IMarker.CHAR_END, new Integer(charEnd));
+ map.put(IMarker.CHAR_END, Integer.valueOf(charEnd));
}
/**
@@ -316,7 +316,7 @@ public final class MarkerUtilities {
* @see IMarker#CHAR_START
*/
public static void setCharStart(Map<String, Object> map, int charStart) {
- map.put(IMarker.CHAR_START, new Integer(charStart));
+ map.put(IMarker.CHAR_START, Integer.valueOf(charStart));
}
/**
@@ -356,7 +356,7 @@ public final class MarkerUtilities {
* @see IMarker#LINE_NUMBER
*/
public static void setLineNumber(Map<String, Object> map, int lineNum) {
- map.put(IMarker.LINE_NUMBER, new Integer(lineNum));
+ map.put(IMarker.LINE_NUMBER, Integer.valueOf(lineNum));
}
/**

Back to the top