diff options
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(); } } |