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.director.app | |
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.director.app')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.director.app/src/org/eclipse/equinox/internal/p2/director/app/DirectorApplication.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.director.app/src/org/eclipse/equinox/internal/p2/director/app/DirectorApplication.java b/bundles/org.eclipse.equinox.p2.director.app/src/org/eclipse/equinox/internal/p2/director/app/DirectorApplication.java index 03de3cbdf..4409ba564 100644 --- a/bundles/org.eclipse.equinox.p2.director.app/src/org/eclipse/equinox/internal/p2/director/app/DirectorApplication.java +++ b/bundles/org.eclipse.equinox.p2.director.app/src/org/eclipse/equinox/internal/p2/director/app/DirectorApplication.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2017 IBM Corporation and others. + * Copyright (c) 2007, 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 @@ -303,7 +303,7 @@ public class DirectorApplication implements IApplication, ProvisioningListener { return null; } Properties properties = new Properties(); - try (InputStream input = new BufferedInputStream(new FileInputStream(file))){ + try (InputStream input = new BufferedInputStream(new FileInputStream(file))) { properties.load(input); } catch (IOException e) { logFailure(new Status(IStatus.ERROR, Activator.ID, NLS.bind(Messages.Problem_loading_file, file.getAbsolutePath()), e)); @@ -1114,7 +1114,7 @@ public class DirectorApplication implements IApplication, ProvisioningListener { performPrintTags(); if (purgeRegistry) purgeRegistry(); - printMessage(NLS.bind(Messages.Operation_complete, new Long(System.currentTimeMillis() - time))); + printMessage(NLS.bind(Messages.Operation_complete, Long.valueOf(System.currentTimeMillis() - time))); } return IApplication.EXIT_OK; } catch (CoreException e) { |