Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-12-19 18:59:49 +0000
committerLars Vogel2019-12-19 18:59:49 +0000
commit43fb9501aff0736a22cc502da4bb150e85b56a2c (patch)
tree69216c907e802c56afb30c4223f7ba535c7d57b6
parentc2c7fa7dfbbcfebefa3a5f95bf938f3d53232406 (diff)
downloadorg.eclipse.e4.tools-43fb9501aff0736a22cc502da4bb150e85b56a2c.tar.gz
org.eclipse.e4.tools-43fb9501aff0736a22cc502da4bb150e85b56a2c.tar.xz
org.eclipse.e4.tools-43fb9501aff0736a22cc502da4bb150e85b56a2c.zip
Replaces deprecated new Integer with Integer.valueOf
Change-Id: I9d489f953ff770bb69de6e6ed5b55efc7fe2cc18 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CSSScratchPadPart.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CSSScratchPadPart.java b/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CSSScratchPadPart.java
index 5f209807..e235a8de 100644
--- a/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CSSScratchPadPart.java
+++ b/bundles/org.eclipse.e4.tools.css.spy/src/org/eclipse/e4/tools/css/spy/CSSScratchPadPart.java
@@ -96,7 +96,7 @@ public class CSSScratchPadPart {
Button button = new Button(parent, SWT.PUSH);
button.setText(label);
button.setFont(JFaceResources.getDialogFont());
- button.setData(new Integer(id));
+ button.setData(Integer.valueOf(id));
button.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent event) {
@@ -109,7 +109,7 @@ public class CSSScratchPadPart {
shell.setDefaultButton(button);
}
}
- buttons.put(new Integer(id), button);
+ buttons.put(Integer.valueOf(id), button);
// setButtonLayoutData(button);
return button;
}

Back to the top