Skip to content

Commit 29f6d42

Browse files
committed
Cleanup #toString() for 3D point
Removed parenthesis because they are not common for value objects in Java. Also `InternalPoint2D` did not have them.
1 parent e2881f7 commit 29f6d42

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

driver/src/main/java/org/neo4j/driver/internal/InternalPoint3D.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ public int hashCode()
8888
@Override
8989
public String toString()
9090
{
91-
return "Point({" +
91+
return "Point{" +
9292
"srid=" + srid +
9393
", x=" + x +
9494
", y=" + y +
9595
", z=" + z +
96-
"})";
96+
'}';
9797
}
9898
}

driver/src/main/java/org/neo4j/driver/v1/types/Point.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
* or {@link Values#point(int, double, double, double)} method.
2929
*/
3030
@Immutable
31-
3231
public interface Point
3332
{
3433
/**
@@ -55,8 +54,7 @@ public interface Point
5554
/**
5655
* Retrieve {@code z} coordinate of this point.
5756
*
58-
* @return the {@code z} coordinate value or {@link Double#NaN} if not applicable
57+
* @return the {@code z} coordinate value or {@link Double#NaN} if not applicable.
5958
*/
6059
double z();
61-
6260
}

0 commit comments

Comments
 (0)