Skip to content

Commit

Permalink
code-cleanup: add missing @OverRide
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy2003 committed May 30, 2024
1 parent 4e0bf33 commit b919fbd
Show file tree
Hide file tree
Showing 21 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public int compareTo(PointResult other) {
return Double.compare(this.distance, other.distance);
}

@Override
public String toString() {
return "Point[" + point + "] distance[" + distance + "] record[" + record + "]";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public PropertyMapper(String from, String to, String type, String params) {
this.params = params;
}

@Override
public boolean equals(Object obj) {
if (obj instanceof PropertyMapper other) {
return this.key().equals(other.key());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public static String coordinateString(List<org.neo4j.graphdb.spatial.Coordinate>
.collect(Collectors.joining(", "));
}

@Override
public String toString() {
return geometryType + "(" + coordinateString(coordinates) + ")[" + crs + "]";
}
Expand Down
1 change: 1 addition & 0 deletions src/main/java/org/neo4j/gis/spatial/osm/OSMDataset.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ public Node getNode() {
return node;
}

@Override
public String toString() {
if (node.hasProperty("name")) {
return node.getProperty("name").toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ public enum OSMId {
this.name = name;
}

@Override
public String toString() {
return name;
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/org/neo4j/gis/spatial/osm/OSMImporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ String[] getTags() {
return new String[0];
}

@Override
public String toString() {
return "TagStats[" + name + "]: " + asList(getTags());
}
Expand Down Expand Up @@ -1297,6 +1298,7 @@ protected WrappedNode getUserNode(Map<String, Object> nodeProps) {
return currentUserNode;
}

@Override
public String toString() {
return "OSMGraphWriter: DatabaseService[" + graphDb + "]:txInterval[" + this.txInterval + "]";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ public Iterator<E> iterator() {
return this;
}

@Override
public String toString() {
return getClass().getSimpleName();
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/org/neo4j/gis/spatial/pipes/impl/Pipeline.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ public Iterator<E> iterator() {
return this;
}

@Override
public String toString() {
return this.pipes.toString();
}
Expand All @@ -200,6 +201,7 @@ public Iterator<S> getStarts() {
return this.pipes.get(index);
}

@Override
public boolean equals(final Object object) {
return (object instanceof Pipeline) && areEqual(this, (Pipeline<?, ?>) object);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ protected S processNextStart() {
}
}

@Override
public String toString() {
return String.format("%s (%d, %d)", getClass().getSimpleName(), low, high);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public static void shutdownDb() {

}

@Override
public GraphDatabaseService graphdb() {
return db;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ private RTreeIndexMaker(String name, String splitMode, String insertMode, int ma
this.config = config;
}

@Override
public EditableLayer setupLayer(Transaction tx) {
this.nodes = setup(name, "rtree", config.width);
this.layer = (EditableLayer) spatial.getLayer(tx, name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ public double duration() {
return duration / 1000.0;
}

@Override
public String toString() {
return name + "\t" + duration;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

public class LayerGeohashNativePointIndexTest extends NativePointIndexTestBase {

@Override
protected Class<? extends LayerIndexReader> getIndexClass() {
return LayerGeohashPointIndex.class;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

public class LayerGeohashSimplePointIndexTest extends SimplePointIndexTestBase {

@Override
protected Class<? extends LayerIndexReader> getIndexClass() {
return LayerGeohashPointIndex.class;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

public class LayerHilbertNativePointIndexTest extends NativePointIndexTestBase {

@Override
protected Class<? extends LayerIndexReader> getIndexClass() {
return LayerHilbertPointIndex.class;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

public class LayerHilbertSimplePointIndexTest extends SimplePointIndexTestBase {

@Override
protected Class<? extends LayerIndexReader> getIndexClass() {
return LayerHilbertPointIndex.class;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

public class LayerRTreeNativePointIndexTest extends NativePointIndexTestBase {

@Override
protected Class<? extends LayerIndexReader> getIndexClass() {
return LayerRTreeIndex.class;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

public class LayerRTreeSimplePointIndexTest extends SimplePointIndexTestBase {

@Override
protected Class<? extends LayerIndexReader> getIndexClass() {
return LayerRTreeIndex.class;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

public class LayerZOrderNativePointIndexTest extends NativePointIndexTestBase {

@Override
protected Class<? extends LayerIndexReader> getIndexClass() {
return LayerZOrderPointIndex.class;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

public class LayerZOrderSimplePointIndexTest extends SimplePointIndexTestBase {

@Override
protected Class<? extends LayerIndexReader> getIndexClass() {
return LayerZOrderPointIndex.class;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public float average() {
return 0;
}

@Override
public String toString() {
if (count > 0) {
return "" + chunk + ": " + average() + "ms per record (" + count + " records over " + time + "ms)";
Expand Down

0 comments on commit b919fbd

Please sign in to comment.