jdk/src/java.desktop/macosx/classes/com/apple/laf/AquaUtils.java
changeset 42218 35e0972b2533
parent 42208 7c1017f0ade5
--- a/jdk/src/java.desktop/macosx/classes/com/apple/laf/AquaUtils.java	Tue Nov 15 12:52:24 2016 +0530
+++ b/jdk/src/java.desktop/macosx/classes/com/apple/laf/AquaUtils.java	Tue Nov 22 10:43:49 2016 -0800
@@ -176,10 +176,11 @@
         }
 
         @Override
+        @SuppressWarnings("deprecation")
         T getInstance() {
             try {
                 ReflectUtil.checkPackageAccess(clazz);
-                return clazz.getDeclaredConstructor().newInstance();
+                return clazz.newInstance();
             } catch (ReflectiveOperationException ignored) {
             }
             return null;