< prev index next >

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

Print this page

        

@@ -74,10 +74,11 @@
     }
 
     protected AquaBorder deriveBorderForSize(final Size size) {
         try {
             final Class<? extends AquaBorder> clazz = getClass();
+            @SuppressWarnings("deprecation")
             final AquaBorder border = clazz.getConstructor(new Class<?>[] { clazz }).newInstance(new Object[] { this });
             border.setSize(size);
             return border;
         } catch (final Throwable e) {
             return null;
< prev index next >