Forbidden-apis fix - Graphics2D.finalize() is deprecated by Java14

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884813 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2020-12-26 09:09:17 +00:00
parent d121353f61
commit b0830f9d94
1 changed files with 0 additions and 12 deletions

View 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();