diff options
author | gjoranv <gv@oath.com> | 2018-05-02 15:27:24 +0200 |
---|---|---|
committer | gjoranv <gv@oath.com> | 2018-05-02 15:33:42 +0200 |
commit | b07d09bb715f3d2749809611cac0f2ff494bccb6 (patch) | |
tree | f6cac14c38c32729418e731b1171329c58b2fb42 /jdisc_core_test | |
parent | 57466aab4b6e1371bc38fc654117b883cc23cd61 (diff) |
Java 9: Class.newInstance() is deprecated.
Diffstat (limited to 'jdisc_core_test')
-rw-r--r-- | jdisc_core_test/test_bundles/cert-ml/src/main/java/com/yahoo/jdisc/bundle/m/CertificateM.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jdisc_core_test/test_bundles/cert-ml/src/main/java/com/yahoo/jdisc/bundle/m/CertificateM.java b/jdisc_core_test/test_bundles/cert-ml/src/main/java/com/yahoo/jdisc/bundle/m/CertificateM.java index f74d0f27894..2407b6732c0 100644 --- a/jdisc_core_test/test_bundles/cert-ml/src/main/java/com/yahoo/jdisc/bundle/m/CertificateM.java +++ b/jdisc_core_test/test_bundles/cert-ml/src/main/java/com/yahoo/jdisc/bundle/m/CertificateM.java @@ -12,7 +12,7 @@ public class CertificateM implements Callable<Integer> { @SuppressWarnings({ "unchecked" }) public Integer call() throws Exception { Class<?> certClass = Class.forName("com.yahoo.jdisc.bundle.l.CertificateL"); - Callable<Integer> cert = (Callable<Integer>)certClass.newInstance(); + Callable<Integer> cert = (Callable<Integer>)certClass.getDeclaredConstructor().newInstance(); return cert.call(); } } |