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

@@ -421,7 +421,7 @@ public class Boundary implements
.orElse(null);
}
private static record BorderingRegions(Long left, Long right) {
private record BorderingRegions(Long left, Long right) {
public static BorderingRegions empty() {
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
* relation.
*/
private static record BoundaryRelation(
private record BoundaryRelation(
long id,
int adminLevel,
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. */
private static record CountryBoundaryComponent(
private record CountryBoundaryComponent(
int adminLevel,
boolean disputed,
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;
}
private static record BuildingRelationInfo(long id) implements OsmRelationInfo {
private record BuildingRelationInfo(long id) implements OsmRelationInfo {
@Override
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
* data.
*/
private static record NaturalEarthRegion(String name, int rank) {
private record NaturalEarthRegion(String name, int rank) {
NaturalEarthRegion(String name, int maxRank, double... ranks) {
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
* 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) {}
}