< prev index next >

src/java.desktop/macosx/classes/com/apple/laf/AquaUtils.java

Print this page

        

@@ -195,10 +195,11 @@
         RecyclableSingletonFromDefaultConstructor(final Class<T> clazz) {
             this.clazz = clazz;
         }
 
         @Override
+        @SuppressWarnings("deprecation") // Class.newInstance
         T getInstance() {
             try {
                 ReflectUtil.checkPackageAccess(clazz);
                 return clazz.newInstance();
             } catch (InstantiationException | IllegalAccessException ignored) {
< prev index next >