diff options
author | Lars Vogel | 2017-01-11 20:42:01 +0000 |
---|---|---|
committer | Lars Vogel | 2017-01-11 20:42:01 +0000 |
commit | 1e5d8f21feb0e2fe7c1bdc264d01677edde4365b (patch) | |
tree | 41d904986cceee1564067b1d53f718a77f279c98 /org.eclipse.ui.examples.javaeditor | |
parent | f4fbf4ecf56758b9443f635bf187d4638a99e91e (diff) | |
download | eclipse.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.examples.javaeditor')
-rw-r--r-- | org.eclipse.ui.examples.javaeditor/Eclipse Java Editor Example/org/eclipse/ui/examples/javaeditor/java/JavaCompletionProcessor.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.ui.examples.javaeditor/Eclipse Java Editor Example/org/eclipse/ui/examples/javaeditor/java/JavaCompletionProcessor.java b/org.eclipse.ui.examples.javaeditor/Eclipse Java Editor Example/org/eclipse/ui/examples/javaeditor/java/JavaCompletionProcessor.java index 5a45d1cc6a1..eae6b3f2ae6 100644 --- a/org.eclipse.ui.examples.javaeditor/Eclipse Java Editor Example/org/eclipse/ui/examples/javaeditor/java/JavaCompletionProcessor.java +++ b/org.eclipse.ui.examples.javaeditor/Eclipse Java Editor Example/org/eclipse/ui/examples/javaeditor/java/JavaCompletionProcessor.java @@ -72,8 +72,8 @@ public class JavaCompletionProcessor implements IContentAssistProcessor { IContextInformation[] result= new IContextInformation[5]; for (int i= 0; i < result.length; i++) result[i]= new ContextInformation( - MessageFormat.format(JavaEditorMessages.getString("CompletionProcessor.ContextInfo.display.pattern"), new Object[] { new Integer(i), new Integer(documentOffset) }), //$NON-NLS-1$ - MessageFormat.format(JavaEditorMessages.getString("CompletionProcessor.ContextInfo.value.pattern"), new Object[] { new Integer(i), new Integer(documentOffset - 5), new Integer(documentOffset + 5)})); //$NON-NLS-1$ + MessageFormat.format(JavaEditorMessages.getString("CompletionProcessor.ContextInfo.display.pattern"), new Object[] { Integer.valueOf(i), Integer.valueOf(documentOffset) }), //$NON-NLS-1$ + MessageFormat.format(JavaEditorMessages.getString("CompletionProcessor.ContextInfo.value.pattern"), new Object[] { Integer.valueOf(i), Integer.valueOf(documentOffset - 5), Integer.valueOf(documentOffset + 5)})); //$NON-NLS-1$ return result; } |