commit | dc1ac272dc4fec2b4e2e00fbfa11b1b782b055d9 | [log] [tgz] |
---|---|---|
author | Lars Vogel <Lars.Vogel@vogella.com> | Thu Dec 19 19:57:10 2019 +0100 |
committer | Lars Vogel <Lars.Vogel@vogella.com> | Thu Jan 23 08:01:43 2020 -0500 |
tree | 1016328f85dc7ca2c7830fc3681c3b16dc8c5f6c | |
parent | 4e15f39b287d9c563dd0c804cd6ab3e1d2a699b6 [diff] |
Replace deprecated new Boolean with Boolean.valueOf Change-Id: I645ffa2061e7abf4c91aee9b54901cda6170a325 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
diff --git a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaWatchpoint.java b/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaWatchpoint.java index d731972..826c087 100644 --- a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaWatchpoint.java +++ b/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaWatchpoint.java
@@ -387,7 +387,7 @@ boolean[] def = getDefaultAccessAndModificationValues(); Object[] values = new Object[def.length]; for (int i = 0; i < def.length; i++) { - values[i] = new Boolean(def[i]); + values[i] = Boolean.valueOf(def[i]); } String[] attributes = new String[] { ACCESS, MODIFICATION }; setAttributes(attributes, values);
diff --git a/org.eclipse.jdt.launching.ui.macosx/src/org/eclipse/jdt/internal/ui/macbundler/BundleWizardBasePage.java b/org.eclipse.jdt.launching.ui.macosx/src/org/eclipse/jdt/internal/ui/macbundler/BundleWizardBasePage.java index 9ef2475..4cbb7c8 100644 --- a/org.eclipse.jdt.launching.ui.macosx/src/org/eclipse/jdt/internal/ui/macbundler/BundleWizardBasePage.java +++ b/org.eclipse.jdt.launching.ui.macosx/src/org/eclipse/jdt/internal/ui/macbundler/BundleWizardBasePage.java
@@ -203,7 +203,7 @@ b.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { - fBundleDescription.setValue(key, new Boolean(b.getSelection())); + fBundleDescription.setValue(key, Boolean.valueOf(b.getSelection())); checkIfPageComplete(); } });