Skip to content

Commit c775bcc

Browse files
applying miss @OverRide for paint() method
1 parent 069f952 commit c775bcc

File tree

1 file changed

+2
-1
lines changed
  • src/refactoring_guru/composite/example/shapes

1 file changed

+2
-1
lines changed

src/refactoring_guru/composite/example/shapes/Circle.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ public int getWidth() {
1919
public int getHeight() {
2020
return radius * 2;
2121
}
22-
22+
23+
@Override
2324
public void paint(Graphics graphics) {
2425
super.paint(graphics);
2526
graphics.drawOval(x, y, getWidth() - 1, getHeight() - 1);

0 commit comments

Comments
 (0)