Fix compile warnings (#881)

This commit is contained in:
Emux
2021-10-10 17:42:35 +03:00
committed by GitHub
parent bb03b40075
commit f076544993
12 changed files with 16 additions and 28 deletions

View File

@@ -14,18 +14,7 @@
*/
package org.oscim.utils.geom;
import org.locationtech.jts.geom.Coordinate;
import org.locationtech.jts.geom.Geometry;
import org.locationtech.jts.geom.GeometryCollection;
import org.locationtech.jts.geom.GeometryFactory;
import org.locationtech.jts.geom.LineString;
import org.locationtech.jts.geom.LinearRing;
import org.locationtech.jts.geom.MultiLineString;
import org.locationtech.jts.geom.MultiPoint;
import org.locationtech.jts.geom.MultiPolygon;
import org.locationtech.jts.geom.Point;
import org.locationtech.jts.geom.Polygon;
import org.locationtech.jts.geom.PrecisionModel;
import org.locationtech.jts.geom.*;
import java.lang.reflect.Array;
import java.util.ArrayDeque;
@@ -204,7 +193,7 @@ public class GeomBuilder {
*/
public GeomBuilder multiPoint() {
if (!cstack.isEmpty()) {
gstack.push(factory.createMultiPoint(cpopAll()));
gstack.push(factory.createMultiPointFromCoords(cpopAll()));
} else {
gstack.push(factory.createMultiPoint(gpopAll(Point.class)));
}