Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-03-28 05:50:45 +0000
committerAlexander Kurtakov2018-03-28 05:50:45 +0000
commitef45b0d79f051a5b94373fe2b75d93344df9a570 (patch)
treeacc667f088024cbbaef44fb5b8372ace8cf6aae4 /org.eclipse.help.base/src/org/eclipse/help
parent0132973c43739607f5295f2fb89fe2c2e47c3505 (diff)
downloadeclipse.platform.ua-ef45b0d79f051a5b94373fe2b75d93344df9a570.tar.gz
eclipse.platform.ua-ef45b0d79f051a5b94373fe2b75d93344df9a570.tar.xz
eclipse.platform.ua-ef45b0d79f051a5b94373fe2b75d93344df9a570.zip
Bug 532976 - Do not use APIs deprecated in Java 9
* new Integer * Object.finalize * Class.getConstructor Change-Id: I95ef6f31b307bfaa33a6da80109611f6205e819a Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'org.eclipse.help.base/src/org/eclipse/help')
-rw-r--r--org.eclipse.help.base/src/org/eclipse/help/internal/base/BaseHelpSystem.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.help.base/src/org/eclipse/help/internal/base/BaseHelpSystem.java b/org.eclipse.help.base/src/org/eclipse/help/internal/base/BaseHelpSystem.java
index 6778f516e..dd8b3fb3e 100644
--- a/org.eclipse.help.base/src/org/eclipse/help/internal/base/BaseHelpSystem.java
+++ b/org.eclipse.help.base/src/org/eclipse/help/internal/base/BaseHelpSystem.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2015 IBM Corporation and others.
+ * Copyright (c) 2000, 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
@@ -321,7 +321,7 @@ public final class BaseHelpSystem {
try {
Class<?> c = bundle.loadClass(className);
- Object o = c.newInstance();
+ Object o = c.getDeclaredConstructor().newInstance();
//Runnable runnable = null;
if (o != null && o instanceof ILiveHelpAction) {
ILiveHelpAction helpExt = (ILiveHelpAction) o;

Back to the top