Commit d413fef3 authored by Georgii Aksenov's avatar Georgii Aksenov
Browse files

Iteration03 - review fixes

parent 417eee7e
Pipeline #74480 failed with stage
in 33 seconds
...@@ -24,8 +24,7 @@ public class Circle { ...@@ -24,8 +24,7 @@ public class Circle {
* This is a default constructor with default parameters. * This is a default constructor with default parameters.
*/ */
public Circle() { public Circle() {
this.center = new Vertex2D(0, 0); this(new Vertex2D(0, 0), 1);
this.radius = 1;
} }
public Vertex2D getCenter() { public Vertex2D getCenter() {
......
...@@ -40,7 +40,7 @@ public class Vertex2D { ...@@ -40,7 +40,7 @@ public class Vertex2D {
*/ */
@Override @Override
public String toString() { public String toString() {
return format("[%s, %s]", Double.valueOf(x).toString(), Double.valueOf(y).toString()); return format("[%s, %s]", x, y);
} }
/** /**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment