Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2017-11-08 21:36:24 +0000
committerKarsten Thoms2017-11-08 21:36:24 +0000
commit8127b32ac942fb77fe4edda6ef5e1a982ec1c04a (patch)
treeedac12b274c7a20fde04ed71198ab8875ab95c27
parent4e0ad0c1c3cd6a3e0cb2a46f01ed9600aef09bd8 (diff)
downloadeclipse.platform.text-8127b32ac942fb77fe4edda6ef5e1a982ec1c04a.tar.gz
eclipse.platform.text-8127b32ac942fb77fe4edda6ef5e1a982ec1c04a.tar.xz
eclipse.platform.text-8127b32ac942fb77fe4edda6ef5e1a982ec1c04a.zip
Change-Id: Ieb6a5450b76c7a5305678f09ecb3785a7fe90c47 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/internal/text/revisions/RevisionPainter.java4
-rw-r--r--org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java2
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/ChainedPreferenceStore.java6
-rw-r--r--org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java4
4 files changed, 8 insertions, 8 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/revisions/RevisionPainter.java b/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/revisions/RevisionPainter.java
index 50a257aa4..46ab4afc0 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/revisions/RevisionPainter.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/revisions/RevisionPainter.java
@@ -161,7 +161,7 @@ public final class RevisionPainter {
return;
List<Long> revisions= new ArrayList<>();
for (Revision revision : info.getRevisions()) {
- revisions.add(new Long(computeAge(revision)));
+ revisions.add(Long.valueOf(computeAge(revision)));
}
Collections.sort(revisions);
fRevisions= revisions;
@@ -205,7 +205,7 @@ public final class RevisionPainter {
private int computeAgeIndex(Revision revision) {
long age= computeAge(revision);
- int index= fRevisions.indexOf(new Long(age));
+ int index= fRevisions.indexOf(Long.valueOf(age));
return index;
}
diff --git a/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java b/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java
index 63a10cbc7..bdb76c70f 100644
--- a/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java
+++ b/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java
@@ -417,7 +417,7 @@ public class TextSearchVisitor {
fProgressMonitor.done();
fCollector.endReporting();
if (TRACING) {
- Object[] args= { Integer.valueOf(fNumberOfScannedFiles), Integer.valueOf(jobCount), Integer.valueOf(NUMBER_OF_LOGICAL_THREADS), new Long(System.currentTimeMillis() - startTime) };
+ Object[] args= { Integer.valueOf(fNumberOfScannedFiles), Integer.valueOf(jobCount), Integer.valueOf(NUMBER_OF_LOGICAL_THREADS), Long.valueOf(System.currentTimeMillis() - startTime) };
System.out.println(Messages.format(
"[TextSearch] Search duration for {0} files in {1} jobs using {2} threads: {3}ms", args)); //$NON-NLS-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 1a9fb178e..0d84f027c 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
@@ -434,13 +434,13 @@ public class ChainedPreferenceStore implements IPreferenceStore {
if (thisValue instanceof Boolean)
return store.getBoolean(property) ? Boolean.TRUE : Boolean.FALSE;
else if (thisValue instanceof Double)
- return new Double(store.getDouble(property));
+ return Double.valueOf(store.getDouble(property));
else if (thisValue instanceof Float)
- return new Float(store.getFloat(property));
+ return Float.valueOf(store.getFloat(property));
else if (thisValue instanceof Integer)
return Integer.valueOf(store.getInt(property));
else if (thisValue instanceof Long)
- return new Long(store.getLong(property));
+ return Long.valueOf(store.getLong(property));
else if (thisValue instanceof String)
return store.getString(property);
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java
index f8cdc2d1f..9dd27dffd 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java
@@ -456,7 +456,7 @@ class FindReplaceDialog extends Dialog {
e.doit= false;
}
else if (e.detail == SWT.TRAVERSE_MNEMONIC) {
- Character mnemonic= new Character(Character.toLowerCase(e.character));
+ Character mnemonic= Character.valueOf(Character.toLowerCase(e.character));
if (fMnemonicButtonMap.containsKey(mnemonic)) {
Button button= fMnemonicButtonMap.get(mnemonic);
if ((fFindField.isFocusControl() || fReplaceField.isFocusControl() || (button.getStyle() & SWT.PUSH) != 0)
@@ -1285,7 +1285,7 @@ class FindReplaceDialog extends Dialog {
private void storeButtonWithMnemonicInMap(Button button) {
char mnemonic= LegacyActionTools.extractMnemonic(button.getText());
if (mnemonic != LegacyActionTools.MNEMONIC_NONE)
- fMnemonicButtonMap.put(new Character(Character.toLowerCase(mnemonic)), button);
+ fMnemonicButtonMap.put(Character.valueOf(Character.toLowerCase(mnemonic)), button);
}
/**

Back to the top