summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2013-08-09 05:53:52 (EDT)
committerGerrit Code Review @ Eclipse.org2013-10-03 12:02:46 (EDT)
commitccc980bf23fcf32d692f0d518263ebcdc385e4f7 (patch)
tree5eacafa6379b5eb84ec125586cc140cbe864dcd9
parent893274f9328ad7eb0e8b432ce911c6289f95fae0 (diff)
downloadorg.eclipse.mylyn.reviews-ccc980bf23fcf32d692f0d518263ebcdc385e4f7.zip
org.eclipse.mylyn.reviews-ccc980bf23fcf32d692f0d518263ebcdc385e4f7.tar.gz
org.eclipse.mylyn.reviews-ccc980bf23fcf32d692f0d518263ebcdc385e4f7.tar.bz2
in ProgressDialog use static valueOf instead of inefficient constructorrefs/changes/74/15274/3
Change-Id: I933152eab919b65c585f163c34e595cc3eb1d04e Signed-off-by: Tomasz Zarna <tomasz.zarna@tasktop.com>
-rw-r--r--org.eclipse.mylyn.reviews.ui/src/org/eclipse/mylyn/reviews/ui/ProgressDialog.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.reviews.ui/src/org/eclipse/mylyn/reviews/ui/ProgressDialog.java b/org.eclipse.mylyn.reviews.ui/src/org/eclipse/mylyn/reviews/ui/ProgressDialog.java
index ce5f368..75c6d60 100644
--- a/org.eclipse.mylyn.reviews.ui/src/org/eclipse/mylyn/reviews/ui/ProgressDialog.java
+++ b/org.eclipse.mylyn.reviews.ui/src/org/eclipse/mylyn/reviews/ui/ProgressDialog.java
@@ -258,7 +258,7 @@ public abstract class ProgressDialog extends TitleAreaDialog {
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) {
@@ -271,7 +271,7 @@ public abstract class ProgressDialog extends TitleAreaDialog {
shell.setDefaultButton(button);
}
}
- buttons.put(new Integer(id), button);
+ buttons.put(Integer.valueOf(id), button);
setButtonLayoutData(button);
return button;
}