summaryrefslogtreecommitdiff
path: root/java/awt/geom/RectangularShape.java
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2006-12-10 19:35:37 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2006-12-10 19:35:37 +0000
commitf4b2de8ebb01a1e4a906682edaa17785fff813c9 (patch)
treecaae0a89736a380f7879b2181ad999725ac83f5b /java/awt/geom/RectangularShape.java
parentd1b6fb1ce48424b1eb608f8432a758627a3ba25d (diff)
downloadclasspath-generics-stoppoint.tar.gz
2006-12-10 Andrew John Hughes <gnu_andrew@member.fsf.org>generics-stoppoint
* Merge of HEAD-->generics-branch for classpath-0.93-branch-point to generics-mergepoint
Diffstat (limited to 'java/awt/geom/RectangularShape.java')
-rw-r--r--java/awt/geom/RectangularShape.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/java/awt/geom/RectangularShape.java b/java/awt/geom/RectangularShape.java
index 8f66dabf2..3ee161541 100644
--- a/java/awt/geom/RectangularShape.java
+++ b/java/awt/geom/RectangularShape.java
@@ -326,15 +326,12 @@ public abstract class RectangularShape implements Shape, Cloneable
/**
* Returns a bounding box for this shape, in integer format. Notice that you
- * may get a tighter bound with getBounds2D. If the frame is empty, the
- * box is the default empty box at the origin.
+ * may get a tighter bound with getBounds2D.
*
* @return a bounding box
*/
public Rectangle getBounds()
{
- if (isEmpty())
- return new Rectangle();
double x = getX();
double y = getY();
double maxx = Math.ceil(x + getWidth());