]> source.dussan.org Git - poi.git/commitdiff
Forbidden-apis fix - Graphics2D.finalize() is deprecated by Java14
authorAndreas Beeker <kiwiwings@apache.org>
Sat, 26 Dec 2020 09:09:17 +0000 (09:09 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Sat, 26 Dec 2020 09:09:17 +0000 (09:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884813 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xslf/util/DummyGraphics2d.java

index b3f158a334eca489952c9a26ba0e2168485594e1..db6e09abfbfbf4f863ea00103adb095d321c8a4f 100644 (file)
@@ -800,18 +800,6 @@ public class DummyGraphics2d extends Graphics2D {
         g2D.fillRoundRect( x, y, width, height, arcWidth, arcHeight );
     }
 
-    // FIXME: should be protected
-    // FindBugs, category MALICIOUS_CODE, FI_PUBLIC_SHOULD_BE_PROTECTED
-    // A class's finalize() method should have protected access, not public
-    @Internal
-    @Override
-    public final void finalize() {
-        log.println( "finalize():" );
-        g2D.dispose();
-        dispose();
-        super.finalize();
-    }
-
     public Shape getClip() {
         log.println( "getClip():" );
         return g2D.getClip();