fix warnings

This commit is contained in:
Mike Barry
2022-02-23 20:45:56 -05:00
parent 262d510fef
commit 8ef6f97282
5 changed files with 10 additions and 10 deletions

View File

@@ -244,7 +244,7 @@ public class BasemapProfile extends ForwardingProfile {
*/ */
public interface IgnoreWikidata {} public interface IgnoreWikidata {}
private static record RowDispatch( private record RowDispatch(
Tables.Constructor constructor, Tables.Constructor constructor,
List<Tables.RowHandler<Tables.Row>> handlers List<Tables.RowHandler<Tables.Row>> handlers
) {} ) {}

View File

@@ -387,7 +387,7 @@ public class Generate {
} }
/** The {@code rowClass} of an imposm3 table row and its constructor coerced to a {@link Constructor}. */ /** The {@code rowClass} of an imposm3 table row and its constructor coerced to a {@link Constructor}. */
public static record RowClassAndConstructor( public record RowClassAndConstructor(
Class<? extends Row> rowClass, Class<? extends Row> rowClass,
Constructor create Constructor create
) {} ) {}
@@ -401,7 +401,7 @@ public class Generate {
} }
/** The {@code handlerClass} of a layer handler and it's {@code process} method coerced to a {@link RowHandler}. */ /** The {@code handlerClass} of a layer handler and it's {@code process} method coerced to a {@link RowHandler}. */
public static record RowHandlerAndClass<T extends Row>( public record RowHandlerAndClass<T extends Row>(
Class<?> handlerClass, Class<?> handlerClass,
RowHandler<T> handler RowHandler<T> handler
) {} ) {}
@@ -436,7 +436,7 @@ public class Generate {
tablesClass.append(""" tablesClass.append("""
/** An OSM element that would appear in the {@code %s} table generated by imposm3. */ /** An OSM element that would appear in the {@code %s} table generated by imposm3. */
public static record %s(%s) implements Row, %s { public record %s(%s) implements Row, %s {
public %s(SourceFeature source, String mappingKey) { public %s(SourceFeature source, String mappingKey) {
this(%s); this(%s);
} }

View File

@@ -421,7 +421,7 @@ public class Boundary implements
.orElse(null); .orElse(null);
} }
private static record BorderingRegions(Long left, Long right) { private record BorderingRegions(Long left, Long right) {
public static BorderingRegions empty() { public static BorderingRegions empty() {
return new BorderingRegions(null, null); return new BorderingRegions(null, null);
@@ -432,7 +432,7 @@ public class Boundary implements
* Minimal set of information extracted from a boundary relation to be used when processing each way in that * Minimal set of information extracted from a boundary relation to be used when processing each way in that
* relation. * relation.
*/ */
private static record BoundaryRelation( private record BoundaryRelation(
long id, long id,
int adminLevel, int adminLevel,
boolean disputed, boolean disputed,
@@ -454,7 +454,7 @@ public class Boundary implements
} }
/** Information to hold onto from processing a way in a boundary relation to determine the left/right region ID later. */ /** Information to hold onto from processing a way in a boundary relation to determine the left/right region ID later. */
private static record CountryBoundaryComponent( private record CountryBoundaryComponent(
int adminLevel, int adminLevel,
boolean disputed, boolean disputed,
boolean maritime, boolean maritime,

View File

@@ -182,7 +182,7 @@ public class Building implements
return (mergeZ13Buildings && zoom == 13) ? FeatureMerge.mergeNearbyPolygons(items, 4, 4, 0.5, 0.5) : items; return (mergeZ13Buildings && zoom == 13) ? FeatureMerge.mergeNearbyPolygons(items, 4, 4, 0.5, 0.5) : items;
} }
private static record BuildingRelationInfo(long id) implements OsmRelationInfo { private record BuildingRelationInfo(long id) implements OsmRelationInfo {
@Override @Override
public long estimateMemoryUsageBytes() { public long estimateMemoryUsageBytes() {

View File

@@ -412,7 +412,7 @@ public class Place implements
* Information extracted from a natural earth geographic region that will be inspected when joining with OpenStreetMap * Information extracted from a natural earth geographic region that will be inspected when joining with OpenStreetMap
* data. * data.
*/ */
private static record NaturalEarthRegion(String name, int rank) { private record NaturalEarthRegion(String name, int rank) {
NaturalEarthRegion(String name, int maxRank, double... ranks) { NaturalEarthRegion(String name, int maxRank, double... ranks) {
this(name, (int) Math.ceil(DoubleStream.of(ranks).average().orElse(maxRank))); this(name, (int) Math.ceil(DoubleStream.of(ranks).average().orElse(maxRank)));
@@ -423,6 +423,6 @@ public class Place implements
* Information extracted from a natural earth place label that will be inspected when joining with OpenStreetMap * Information extracted from a natural earth place label that will be inspected when joining with OpenStreetMap
* data. * data.
*/ */
private static record NaturalEarthPoint(String name, String wikidata, int scaleRank, Set<String> names) {} private record NaturalEarthPoint(String name, String wikidata, int scaleRank, Set<String> names) {}
} }