Skip to content

Commit 3e4a7b9

Browse files
Solving code smell regarding method name
1 parent 919e10b commit 3e4a7b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/edu/ie3/datamodel/io/source/sql/SqlIdCoordinateSource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public Optional<Integer> getId(Point coordinate) {
145145

146146
@Override
147147
public Collection<Point> getAllCoordinates() {
148-
return executeQuerytoStream(basicQuery + ";").map(value -> value.coordinate).toList();
148+
return executeQueryToStream(basicQuery + ";").map(value -> value.coordinate).toList();
149149
}
150150

151151
@Override
@@ -206,7 +206,7 @@ private CoordinateValue createCoordinateValue(Map<String, String> fieldToValues)
206206
return new CoordinateValue(idCoordinate.id(), idCoordinate.point());
207207
}
208208

209-
private Stream<CoordinateValue> executeQuerytoStream(String query) {
209+
private Stream<CoordinateValue> executeQueryToStream(String query) {
210210
return dataSource.executeQuery(query).map(this::createCoordinateValue);
211211
}
212212

0 commit comments

Comments
 (0)