aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2020-12-17 22:05:35 +0000
committerPJ Fanning <fanningpj@apache.org>2020-12-17 22:05:35 +0000
commitfcc808d17db2c61e9f4d472ef07b3c4468eb6da6 (patch)
treede9fcab9e6f219c63be60e8f055129529988aaad /src/java/org/apache/poi
parent2b14dc36bb091128ee5e60ae61b32dfee0d5f02a (diff)
downloadpoi-fcc808d17db2c61e9f4d472ef07b3c4468eb6da6.tar.gz
poi-fcc808d17db2c61e9f4d472ef07b3c4468eb6da6.zip
[github-208] Fix a few instances of incorrect NotImplemented documentation. Thanks to Marius Volkhart. This closes #208
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884575 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi')
-rw-r--r--src/java/org/apache/poi/hssf/usermodel/EscherGraphics.java37
1 files changed, 13 insertions, 24 deletions
diff --git a/src/java/org/apache/poi/hssf/usermodel/EscherGraphics.java b/src/java/org/apache/poi/hssf/usermodel/EscherGraphics.java
index aedfcdaa22..6f0f26586c 100644
--- a/src/java/org/apache/poi/hssf/usermodel/EscherGraphics.java
+++ b/src/java/org/apache/poi/hssf/usermodel/EscherGraphics.java
@@ -123,7 +123,6 @@ public class EscherGraphics extends Graphics
@Override
- @NotImplemented
public void clearRect(int x, int y, int width, int height)
{
Color color = foreground;
@@ -136,16 +135,14 @@ public class EscherGraphics extends Graphics
@NotImplemented
public void clipRect(int x, int y, int width, int height)
{
- if (logger.check( POILogger.WARN ))
- logger.log(POILogger.WARN,"clipRect not supported");
+ logger.log(POILogger.WARN,"clipRect not supported");
}
@Override
@NotImplemented
public void copyArea(int x, int y, int width, int height, int dx, int dy)
{
- if (logger.check( POILogger.WARN ))
- logger.log(POILogger.WARN,"copyArea not supported");
+ logger.log(POILogger.WARN,"copyArea not supported");
}
@Override
@@ -165,8 +162,7 @@ public class EscherGraphics extends Graphics
public void drawArc(int x, int y, int width, int height,
int startAngle, int arcAngle)
{
- if (logger.check( POILogger.WARN ))
- logger.log(POILogger.WARN,"drawArc not supported");
+ logger.log(POILogger.WARN,"drawArc not supported");
}
@Override
@@ -177,8 +173,7 @@ public class EscherGraphics extends Graphics
Color bgcolor,
ImageObserver observer)
{
- if (logger.check( POILogger.WARN ))
- logger.log(POILogger.WARN,"drawImage not supported");
+ logger.log(POILogger.WARN,"drawImage not supported");
return true;
}
@@ -190,8 +185,7 @@ public class EscherGraphics extends Graphics
int sx1, int sy1, int sx2, int sy2,
ImageObserver observer)
{
- if (logger.check( POILogger.WARN ))
- logger.log(POILogger.WARN,"drawImage not supported");
+ logger.log(POILogger.WARN,"drawImage not supported");
return true;
}
@@ -272,16 +266,14 @@ public class EscherGraphics extends Graphics
public void drawPolyline(int[] xPoints, int[] yPoints,
int nPoints)
{
- if (logger.check( POILogger.WARN ))
- logger.log(POILogger.WARN,"drawPolyline not supported");
+ logger.log(POILogger.WARN,"drawPolyline not supported");
}
@Override
@NotImplemented
public void drawRect(int x, int y, int width, int height)
{
- if (logger.check( POILogger.WARN ))
- logger.log(POILogger.WARN,"drawRect not supported");
+ logger.log(POILogger.WARN,"drawRect not supported");
}
@Override
@@ -289,8 +281,7 @@ public class EscherGraphics extends Graphics
public void drawRoundRect(int x, int y, int width, int height,
int arcWidth, int arcHeight)
{
- if (logger.check( POILogger.WARN ))
- logger.log(POILogger.WARN,"drawRoundRect not supported");
+ logger.log(POILogger.WARN,"drawRoundRect not supported");
}
@Override
@@ -497,7 +488,7 @@ public class EscherGraphics extends Graphics
@NotImplemented
public void setClip(Shape shape)
{
- // ignore... not implemented
+ logger.log(POILogger.WARN,"setClip not supported");
}
@Override
@@ -516,23 +507,21 @@ public class EscherGraphics extends Graphics
@NotImplemented
public void setPaintMode()
{
- if (logger.check( POILogger.WARN ))
- logger.log(POILogger.WARN,"setPaintMode not supported");
+ logger.log(POILogger.WARN,"setPaintMode not supported");
}
@Override
@NotImplemented
public void setXORMode(Color color)
{
- if (logger.check( POILogger.WARN ))
- logger.log(POILogger.WARN,"setXORMode not supported");
+ logger.log(POILogger.WARN,"setXORMode not supported");
}
+
@Override
@NotImplemented
public void translate(int x, int y)
{
- if (logger.check( POILogger.WARN ))
- logger.log(POILogger.WARN,"translate not supported");
+ logger.log(POILogger.WARN,"translate not supported");
}
public Color getBackground()