aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org
diff options
context:
space:
mode:
authorYegor Kozlov <yegor@apache.org>2010-05-30 06:57:23 +0000
committerYegor Kozlov <yegor@apache.org>2010-05-30 06:57:23 +0000
commit34afd001ead64914e039797be937d68247a3a4bb (patch)
tree06f8759433c99fad7d864101e2738f87140123be /src/java/org
parent8f9937a56900b6d22015e916611d9e6f7b612990 (diff)
downloadpoi-34afd001ead64914e039797be937d68247a3a4bb.tar.gz
poi-34afd001ead64914e039797be937d68247a3a4bb.zip
more cleanup of deprecation warnings generated by javac
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@949485 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r--src/java/org/apache/poi/hssf/usermodel/DummyGraphics2d.java1
-rw-r--r--src/java/org/apache/poi/hssf/usermodel/EscherGraphics.java2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/java/org/apache/poi/hssf/usermodel/DummyGraphics2d.java b/src/java/org/apache/poi/hssf/usermodel/DummyGraphics2d.java
index 67304f7b78..41393d1a56 100644
--- a/src/java/org/apache/poi/hssf/usermodel/DummyGraphics2d.java
+++ b/src/java/org/apache/poi/hssf/usermodel/DummyGraphics2d.java
@@ -695,6 +695,7 @@ public class DummyGraphics2d
return g2D.getClipBounds( r );
}
+ @SuppressWarnings("deprecation")
public Rectangle getClipRect() {
System.out.println( "getClipRect():" );
return g2D.getClipRect();
diff --git a/src/java/org/apache/poi/hssf/usermodel/EscherGraphics.java b/src/java/org/apache/poi/hssf/usermodel/EscherGraphics.java
index bcd9673a53..7500ac7b7b 100644
--- a/src/java/org/apache/poi/hssf/usermodel/EscherGraphics.java
+++ b/src/java/org/apache/poi/hssf/usermodel/EscherGraphics.java
@@ -432,6 +432,7 @@ public class EscherGraphics
return null;
}
+ @SuppressWarnings("deprecation")
public Rectangle getClipRect()
{
return getClipBounds();
@@ -447,6 +448,7 @@ public class EscherGraphics
return font;
}
+ @SuppressWarnings("deprecation")
public FontMetrics getFontMetrics(Font f)
{
return Toolkit.getDefaultToolkit().getFontMetrics(f);