Fix Sonar issues about finalize() usage

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1575501 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2014-03-08 08:41:25 +00:00
parent a128bcd5e2
commit 8c5115aeb1
2 changed files with 7 additions and 3 deletions

View File

@ -19,16 +19,16 @@
package org.apache.poi.hssf.usermodel;
import java.awt.*;
import java.awt.font.FontRenderContext;
import java.awt.font.GlyphVector;
import java.awt.geom.AffineTransform;
import java.awt.image.BufferedImage;
import java.awt.image.BufferedImageOp;
import java.awt.image.ImageObserver;
import java.awt.image.RenderedImage;
import java.awt.image.renderable.RenderableImage;
import java.awt.font.GlyphVector;
import java.awt.font.FontRenderContext;
import java.util.Map;
import java.text.AttributedCharacterIterator;
import java.util.Map;
public class DummyGraphics2d
extends Graphics2D
@ -675,6 +675,8 @@ public class DummyGraphics2d
public void finalize() {
System.out.println( "finalize():" );
g2D.finalize();
super.finalize();
}
public Shape getClip()

View File

@ -127,6 +127,8 @@ public class SheetDataWriter {
@Override
protected void finalize() throws Throwable {
_fd.delete();
super.finalize();
}
/**