diff options
author | Lars Vogel | 2015-08-11 00:49:15 +0000 |
---|---|---|
committer | Lars Vogel | 2015-08-11 00:49:15 +0000 |
commit | 9fcb5dbe062bd044c550e9bd9316253ec614182c (patch) | |
tree | 35683717516e5bd6de8c366ed0ca4d66ae14c18b | |
parent | c2a47e222eadf0edfc5af0f1f0918e41e4015b15 (diff) | |
download | eclipse.platform.ua-9fcb5dbe062bd044c550e9bd9316253ec614182c.tar.gz eclipse.platform.ua-9fcb5dbe062bd044c550e9bd9316253ec614182c.tar.xz eclipse.platform.ua-9fcb5dbe062bd044c550e9bd9316253ec614182c.zip |
Revert "Revert "Bug 474070 - Replace new Boolean with Boolean.valueOf""I20150818-0800I20150811-1400
This reverts commit c2a47e222eadf0edfc5af0f1f0918e41e4015b15.
Change-Id: I459446ae5f29ea06dcda26f9c86a758db71b0f05
3 files changed, 9 insertions, 6 deletions
diff --git a/org.eclipse.help.base/src/org/eclipse/help/internal/base/remote/RemoteStatusData.java b/org.eclipse.help.base/src/org/eclipse/help/internal/base/remote/RemoteStatusData.java index c502cbdf3..ec6366119 100644 --- a/org.eclipse.help.base/src/org/eclipse/help/internal/base/remote/RemoteStatusData.java +++ b/org.eclipse.help.base/src/org/eclipse/help/internal/base/remote/RemoteStatusData.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2011 IBM Corporation and others. + * Copyright (c) 2009, 2015 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -7,6 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation + * Alex Blewitt - Bug 474070 *******************************************************************************/ package org.eclipse.help.internal.base.remote; @@ -178,7 +179,7 @@ public class RemoteStatusData { public void put(URL url,boolean connected) { - cache.put(url,new Boolean(connected)); + cache.put(url,Boolean.valueOf(connected)); } } diff --git a/org.eclipse.help.ui/src/org/eclipse/help/ui/RootScopePage.java b/org.eclipse.help.ui/src/org/eclipse/help/ui/RootScopePage.java index 4044c2592..0605f4963 100644 --- a/org.eclipse.help.ui/src/org/eclipse/help/ui/RootScopePage.java +++ b/org.eclipse.help.ui/src/org/eclipse/help/ui/RootScopePage.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2011 IBM Corporation and others. + * Copyright (c) 2000, 2015 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -7,6 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation + * Alex Blewitt - Bug 474070 *******************************************************************************/ package org.eclipse.help.ui; @@ -173,7 +174,7 @@ public abstract class RootScopePage extends PreferencePage implements if (child == masterButton) continue; if (!enabled) { - disabledStates.put(child, new Boolean(child.isEnabled())); + disabledStates.put(child, Boolean.valueOf(child.isEnabled())); child.setEnabled(false); } else { Boolean savedState = (Boolean) disabledStates.get(child); diff --git a/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/data/SearchData.java b/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/data/SearchData.java index d026f69f6..a13acf068 100644 --- a/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/data/SearchData.java +++ b/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/data/SearchData.java @@ -10,6 +10,7 @@ * Sebastian Davids <sdavids@gmx.de> - fix for Bug 182466 * Holger Voormann - fix for bug 365549 (http://eclip.se/365549) * Holger Voormann - fix for bug 364324 (http://eclip.se/364324) + * Alex Blewitt - Bug 474070 *******************************************************************************/ package org.eclipse.help.internal.webapp.data; @@ -458,8 +459,8 @@ public class SearchData extends ActivitiesData { private ISearchQuery createSearchQuery() { String fieldSearchStr = request.getParameter("fieldSearch"); //$NON-NLS-1$ - boolean fieldSearch = fieldSearchStr != null ? new Boolean( - fieldSearchStr).booleanValue() : false; + boolean fieldSearch = fieldSearchStr != null ? Boolean.parseBoolean( + fieldSearchStr) : false; return new SearchQuery(searchWord == null ? "" : searchWord, fieldSearch, new ArrayList<String>(), //$NON-NLS-1$ getLocale()); } |