fix record formatting

pull/1/head
Mike Barry 2021-05-23 16:10:44 -04:00
rodzic 2800c339f8
commit 20506de8cc
8 zmienionych plików z 8 dodań i 88 usunięć

Wyświetl plik

@ -157,6 +157,7 @@
<option name="BINARY_OPERATION_SIGN_ON_NEXT_LINE" value="true" />
<option name="TERNARY_OPERATION_WRAP" value="1" />
<option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true" />
<option name="KEEP_SIMPLE_CLASSES_IN_ONE_LINE" value="true" />
<option name="FOR_STATEMENT_WRAP" value="1" />
<option name="ARRAY_INITIALIZER_WRAP" value="1" />
<option name="WRAP_COMMENTS" value="true" />

Wyświetl plik

@ -72,71 +72,4 @@ public interface ZoomFunction<T> extends IntFunction<T> {
U apply(int zoom, T t);
}
// static ZoomFunction ranges(Range... ranges) {
// }
// static OfDouble doubleRanges(double defaultValue, DoubleRange... ranges) {
// }
//
// static OfInt intRanges(int defaultValue, IntRange... ranges) {
// }
//
// static ZoomFunction maxZoom(int max, Object value) {
// }
//
// static OfDouble doubleThreshold(double valueBelowThreshold, int threshold, double valueAtOrAboveThreshold) {
// }
//
// static OfInt intThreshold(int valueBelowThreshold, int threshold, int valueAtOrAboveThreshold) {
// }
//
// static OfDouble metersToPixelsAtEquator(int i, DoubleRange doubleRange, DoubleRange doubleRange1,
// DoubleRange doubleRange2) {
// }
//
// record Range(int min, int max, Object value) {
//
// }
//
// static Range range(int min, int max, Object value) {
// return new Range(min, max, value);
// }
//
// record DoubleRange(int min, int max, double value) {
//
// }
//
// static DoubleRange doubleRange(int min, int max, double value) {
// return new DoubleRange(min, max, value);
// }
//
// record IntRange(int min, int max, int value) {
//
// }
//
// static IntRange intRange(int min, int max, int value) {
// return new IntRange(min, max, value);
// }
// interface OfDouble extends IntToDoubleFunction, ZoomFunction {
//
// @Override
// default Double apply(int value) {
// return applyAsDouble(value);
// }
//
// default OfDouble metersToPixelsAtEquator() {
// return (int i) -> applyAsDouble(i) / GeoUtils.metersPerPixelAtEquator(i);
// }
// }
//
// interface OfInt extends IntUnaryOperator, ZoomFunction {
//
// @Override
// default Integer apply(int value) {
// return applyAsInt(value);
// }
// }
}

Wyświetl plik

@ -15,7 +15,5 @@ public record RenderedFeature(
assert vectorTileFeature != null;
}
public static record Group(long group, int limit) {
}
public static record Group(long group, int limit) {}
}

Wyświetl plik

@ -330,9 +330,7 @@ class TiledGeometry {
if (x < 0 || x >= max) {
return null;
}
record SkippedSegment(Direction side, int lo, int hi) {
}
record SkippedSegment(Direction side, int lo, int hi) {}
List<SkippedSegment> skipped = null;
for (int i = 0; i < stripeSegment.size() - 1; i++) {
double ax = stripeSegment.getX(i);

Wyświetl plik

@ -578,9 +578,7 @@ public class FlatMapTest {
private static record FlatMapResults(
Map<TileCoord, List<TestUtils.ComparableFeature>> tiles, Map<String, String> metadata
) {
}
) {}
private static record TestProfile(
@Override String name,

Wyświetl plik

@ -337,9 +337,7 @@ public class TestUtils {
public static record ComparableFeature(
GeometryComparision geometry,
Map<String, Object> attrs
) {
}
) {}
public static ComparableFeature feature(Geometry geom, Map<String, Object> attrs) {
return new ComparableFeature(new NormGeometry(geom), attrs);

Wyświetl plik

@ -79,9 +79,7 @@ public class FeatureGroupTest {
return map;
}
private static record Feature(Map<String, Object> attrs, Geometry geom) {
}
private static record Feature(Map<String, Object> attrs, Geometry geom) {}
@Test
public void testPutPoints() {

Wyświetl plik

@ -147,12 +147,8 @@ public class FeatureRendererTest {
@TestFactory
public List<DynamicTest> testProcessPointsNearInternationalDateLineAndPoles() {
double d = 1d / 512;
record X(double x, double wrapped, double z1x0, double z1x1) {
}
record Y(double y, int z1ty, double tyoff) {
}
record X(double x, double wrapped, double z1x0, double z1x1) {}
record Y(double y, int z1ty, double tyoff) {}
var xs = List.of(
new X(-d, 1 - d, -1, 255),
new X(d, 1 + d, 1, 257),