Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2020-01-14 18:51:44 +0000
committerLars Vogel2020-01-14 18:51:44 +0000
commitf4cc6a3ffa8fa4ea7b2dfdcd2709ca27936fcdcd (patch)
tree6694c5d43944303bfba0fdec0fba2bcfd3aa18bf
parent0442fb434d61915118b5a7e4c45afe16256a3769 (diff)
downloadeclipse.platform.text-f4cc6a3ffa8fa4ea7b2dfdcd2709ca27936fcdcd.tar.gz
eclipse.platform.text-f4cc6a3ffa8fa4ea7b2dfdcd2709ca27936fcdcd.tar.xz
eclipse.platform.text-f4cc6a3ffa8fa4ea7b2dfdcd2709ca27936fcdcd.zip
Use Integer.parseInt to avoid wrapper creation with Integer.valueOf inI20200114-1805
QuickSearchDialog Change-Id: Ifb6c65ffcc49776d8d3548da40bec2c3b648ddf0 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/ui/QuickSearchDialog.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/ui/QuickSearchDialog.java b/org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/ui/QuickSearchDialog.java
index 6be655d52a4..d7b74e0ebb6 100644
--- a/org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/ui/QuickSearchDialog.java
+++ b/org.eclipse.text.quicksearch/src/org/eclipse/text/quicksearch/internal/ui/QuickSearchDialog.java
@@ -449,7 +449,7 @@ public class QuickSearchDialog extends SelectionStatusDialog {
String[] _weights = settings.getArray(DIALOG_SASH_WEIGHTS);
int[] weights = new int[_weights.length];
for (int i = 0; i < weights.length; i++) {
- weights[i] = Integer.valueOf(_weights[i]);
+ weights[i] = Integer.parseInt(_weights[i]);
}
sashForm.setWeights(weights);
}

Back to the top