aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org
diff options
context:
space:
mode:
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);