Fix bugs: stroke condition, logging typo, NPE in clone(), mutable bounds
This commit is contained in:
@@ -75,7 +75,7 @@ public abstract class AbstractShape implements Shape {
|
||||
|
||||
@Override
|
||||
public Rectangle getBounds() {
|
||||
return this.bounds;
|
||||
return new Rectangle(this.bounds);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user