diff options
author | Alexander Kurtakov | 2018-01-30 18:36:31 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2018-01-30 18:36:31 +0000 |
commit | 263e9c737fb38f45777ac83a924f151d97826394 (patch) | |
tree | b86698b7276f4387f40238ef800d4fac539f0438 /bundles/org.eclipse.equinox.p2.touchpoint.eclipse | |
parent | 8d990a7a055c3b929818fb4cb3b8cc5525b75b52 (diff) | |
download | rt.equinox.p2-263e9c737fb38f45777ac83a924f151d97826394.tar.gz rt.equinox.p2-263e9c737fb38f45777ac83a924f151d97826394.tar.xz rt.equinox.p2-263e9c737fb38f45777ac83a924f151d97826394.zip |
Bug 530526 - Don't use deprecated Number children constructors
Deprecated in Java 9 but the replacment methods are here for long time.
Change-Id: I645d66492831a95d27f61bc443c8896d73440579
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.touchpoint.eclipse')
2 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/MarkStartedAction.java b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/MarkStartedAction.java index e0f69eb59..73394d4eb 100644 --- a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/MarkStartedAction.java +++ b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/MarkStartedAction.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2015 IBM Corporation and others. + * Copyright (c) 2008, 2018 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 @@ -43,7 +43,7 @@ public class MarkStartedAction extends ProvisioningAction { return Status.OK_STATUS; } - getMemento().put(ActionConstants.PARM_PREVIOUS_STARTED, new Boolean(bundleInfo.isMarkedAsStarted())); + getMemento().put(ActionConstants.PARM_PREVIOUS_STARTED, Boolean.valueOf(bundleInfo.isMarkedAsStarted())); bundleInfo.setMarkedAsStarted(Boolean.valueOf(started).booleanValue()); return Status.OK_STATUS; } diff --git a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/SetStartLevelAction.java b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/SetStartLevelAction.java index ae9c58bbb..cc315429d 100644 --- a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/SetStartLevelAction.java +++ b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/SetStartLevelAction.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2016 IBM Corporation and others. + * Copyright (c) 2008, 2018 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 @@ -43,7 +43,7 @@ public class SetStartLevelAction extends ProvisioningAction { return Status.OK_STATUS; } - getMemento().put(ActionConstants.PARM_PREVIOUS_START_LEVEL, new Integer(bundleInfo.getStartLevel())); + getMemento().put(ActionConstants.PARM_PREVIOUS_START_LEVEL, Integer.valueOf(bundleInfo.getStartLevel())); try { bundleInfo.setStartLevel(Integer.parseInt(startLevel)); return Status.OK_STATUS; |