commit | f4cc6a3ffa8fa4ea7b2dfdcd2709ca27936fcdcd | [log] [tgz] |
---|---|---|
author | Lars Vogel <Lars.Vogel@vogella.com> | Tue Jan 14 19:51:44 2020 +0100 |
committer | Lars Vogel <Lars.Vogel@vogella.com> | Tue Jan 14 19:51:44 2020 +0100 |
tree | 6694c5d43944303bfba0fdec0fba2bcfd3aa18bf | |
parent | 0442fb434d61915118b5a7e4c45afe16256a3769 [diff] |
Use Integer.parseInt to avoid wrapper creation with Integer.valueOf in QuickSearchDialog Change-Id: Ifb6c65ffcc49776d8d3548da40bec2c3b648ddf0 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
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 6be655d..d7b74e0 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 @@ 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); }