Skip to content

Commit

Permalink
reverted using toList
Browse files Browse the repository at this point in the history
  • Loading branch information
clausnagel committed Dec 11, 2023
1 parent 71643b8 commit b427bcb
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ else if (v.isSetNilReason())
return v.getNilReason().getValue();
else
return null;
}).toList()));
}).collect(Collectors.toList())));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ else if (v.isSetNilReason())
return v.getNilReason().getValue();
else
return null;
}).toList()));
}).collect(Collectors.toList())));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ else if (v.isSetNilReason())
return v.getNilReason().getValue();
else
return null;
}).toList()));
}).collect(Collectors.toList())));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ else if (v.isSetNilReason())
return v.getNilReason().getValue();
else
return null;
}).toList()));
}).collect(Collectors.toList())));
}
}
}
4 changes: 2 additions & 2 deletions src/main/java/org/xmlobjects/gml/model/geometry/Envelope.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public DirectPosition getCenter() {

public boolean contains(double... ordinates) {
return ordinates != null
&& contains(Arrays.stream(ordinates).boxed().toList());
&& contains(Arrays.stream(ordinates).boxed().collect(Collectors.toList()));
}

public boolean contains(List<Double> ordinates) {
Expand Down Expand Up @@ -263,7 +263,7 @@ private boolean intersects(List<Double> lowerCorner, List<Double> upperCorner) {

public Envelope include(double... ordinates) {
if (ordinates != null)
include(Arrays.stream(ordinates).boxed().toList());
include(Arrays.stream(ordinates).boxed().collect(Collectors.toList()));

return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ else if (isSetGeometricPositions())
return geometricPositions.stream()
.map(GeometricPosition::toCoordinateList3D)
.flatMap(Collection::stream)
.toList();
.collect(Collectors.toList());
else
return Collections.emptyList();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ public void setHigh(List<Integer> high) {
public Envelope toEnvelope() {
Envelope envelope = new Envelope();
if (low != null && high != null && !low.isEmpty() && low.size() == high.size()) {
envelope.include(low.stream().map(Double::valueOf).toList());
envelope.include(high.stream().map(Double::valueOf).toList());
envelope.include(low.stream().map(Double::valueOf).collect(Collectors.toList()));
envelope.include(high.stream().map(Double::valueOf).collect(Collectors.toList()));
}

return envelope;
Expand Down

0 comments on commit b427bcb

Please sign in to comment.