kopia lustrzana https://github.com/onthegomap/planetiler
Bump com.google.guava:guava from 33.4.0-jre to 33.4.6-jre (#1230)
* Bump com.google.guava:guava from 33.4.0-jre to 33.4.6-jre Bumps [com.google.guava:guava](https://github.com/google/guava) from 33.4.0-jre to 33.4.6-jre. - [Release notes](https://github.com/google/guava/releases) - [Commits](https://github.com/google/guava/commits) --- updated-dependencies: - dependency-name: com.google.guava:guava dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * fix javax.annotation --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mike Barry <msb5014@gmail.com>pull/1233/head
rodzic
7dd1338b0f
commit
a68c321e97
|
@ -157,7 +157,7 @@
|
|||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
<version>33.4.0-jre</version>
|
||||
<version>33.4.6-jre</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>mil.nga.geopackage</groupId>
|
||||
|
@ -186,6 +186,11 @@
|
|||
<artifactId>lz4-java</artifactId>
|
||||
<version>1.8.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.jcip</groupId>
|
||||
<artifactId>jcip-annotations</artifactId>
|
||||
<version>1.0</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ import java.util.TreeMap;
|
|||
import java.util.function.Consumer;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
import javax.annotation.concurrent.NotThreadSafe;
|
||||
import net.jcip.annotations.NotThreadSafe;
|
||||
import org.locationtech.jts.algorithm.Orientation;
|
||||
import org.locationtech.jts.geom.Coordinate;
|
||||
import org.locationtech.jts.geom.CoordinateSequence;
|
||||
|
|
|
@ -5,11 +5,10 @@ import java.util.Arrays;
|
|||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.OptionalLong;
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
public record TileEncodingResult(
|
||||
TileCoord coord,
|
||||
@Nonnull byte[] tileData,
|
||||
byte[] tileData,
|
||||
int rawTileSize,
|
||||
/* will always be empty in non-compact mode and might also be empty in compact mode */
|
||||
OptionalLong tileDataHash,
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.onthegomap.planetiler.archive;
|
|||
import com.onthegomap.planetiler.config.PlanetilerConfig;
|
||||
import com.onthegomap.planetiler.geo.TileOrder;
|
||||
import java.io.Closeable;
|
||||
import javax.annotation.concurrent.NotThreadSafe;
|
||||
import net.jcip.annotations.NotThreadSafe;
|
||||
|
||||
/**
|
||||
* Write API for an on-disk representation of a tileset in a portable format. Example: MBTiles, a sqlite-based archive
|
||||
|
|
|
@ -41,7 +41,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
|||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
import java.util.concurrent.atomic.AtomicLong;
|
||||
import java.util.function.Supplier;
|
||||
import javax.annotation.concurrent.NotThreadSafe;
|
||||
import net.jcip.annotations.NotThreadSafe;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.xerial.snappy.SnappyInputStream;
|
||||
|
|
|
@ -31,7 +31,7 @@ import java.util.Objects;
|
|||
import java.util.TreeMap;
|
||||
import java.util.concurrent.atomic.AtomicLong;
|
||||
import java.util.function.Function;
|
||||
import javax.annotation.concurrent.NotThreadSafe;
|
||||
import net.jcip.annotations.NotThreadSafe;
|
||||
import org.msgpack.core.MessageBufferPacker;
|
||||
import org.msgpack.core.MessagePack;
|
||||
import org.msgpack.core.MessageUnpacker;
|
||||
|
|
|
@ -12,7 +12,7 @@ import java.util.Comparator;
|
|||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.stream.IntStream;
|
||||
import javax.annotation.concurrent.NotThreadSafe;
|
||||
import net.jcip.annotations.NotThreadSafe;
|
||||
|
||||
/**
|
||||
* A utility that accepts {@link SortableFeature} instances in any order and lets you iterate through them ordered by
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package com.onthegomap.planetiler.collection;
|
||||
|
||||
import java.util.PrimitiveIterator;
|
||||
import javax.annotation.concurrent.NotThreadSafe;
|
||||
import net.jcip.annotations.NotThreadSafe;
|
||||
import org.roaringbitmap.PeekableIntIterator;
|
||||
import org.roaringbitmap.RoaringBitmap;
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.onthegomap.planetiler.geo;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import javax.annotation.concurrent.ThreadSafe;
|
||||
import net.jcip.annotations.ThreadSafe;
|
||||
import org.locationtech.jts.geom.Coordinate;
|
||||
import org.locationtech.jts.geom.Envelope;
|
||||
import org.locationtech.jts.geom.Geometry;
|
||||
|
@ -21,7 +21,7 @@ import org.locationtech.jts.index.strtree.STRtree;
|
|||
@ThreadSafe
|
||||
public class PointIndex<T> {
|
||||
|
||||
private record GeomWithData<T> (Coordinate coord, T data) {}
|
||||
private record GeomWithData<T>(Coordinate coord, T data) {}
|
||||
|
||||
private final STRtree index = new STRtree();
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ package com.onthegomap.planetiler.geo;
|
|||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import javax.annotation.concurrent.ThreadSafe;
|
||||
import net.jcip.annotations.ThreadSafe;
|
||||
import org.locationtech.jts.geom.Geometry;
|
||||
import org.locationtech.jts.geom.GeometryCollection;
|
||||
import org.locationtech.jts.geom.Point;
|
||||
|
@ -67,7 +67,7 @@ public class PolygonIndex<T> {
|
|||
private List<T> postFilterContaining(Point point, List<?> items) {
|
||||
List<T> result = new ArrayList<>(items.size());
|
||||
for (Object item : items) {
|
||||
if (item instanceof GeomWithData<?>(var poly,var data) && poly.contains(point)) {
|
||||
if (item instanceof GeomWithData<?>(var poly, var data) && poly.contains(point)) {
|
||||
@SuppressWarnings("unchecked") T t = (T) data;
|
||||
result.add(t);
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ public class PolygonIndex<T> {
|
|||
private List<T> postFilterIntersecting(Geometry geom, List<?> items) {
|
||||
List<T> result = new ArrayList<>(items.size());
|
||||
for (Object item : items) {
|
||||
if (item instanceof GeomWithData<?>(var poly,var data) && poly.intersects(geom)) {
|
||||
if (item instanceof GeomWithData<?>(var poly, var data) && poly.intersects(geom)) {
|
||||
@SuppressWarnings("unchecked") T t = (T) data;
|
||||
result.add(t);
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ import com.onthegomap.planetiler.util.Hilbert;
|
|||
import java.text.DecimalFormat;
|
||||
import java.text.DecimalFormatSymbols;
|
||||
import java.util.Locale;
|
||||
import javax.annotation.concurrent.Immutable;
|
||||
import net.jcip.annotations.Immutable;
|
||||
import org.locationtech.jts.geom.Coordinate;
|
||||
import org.locationtech.jts.geom.CoordinateXY;
|
||||
import org.locationtech.jts.geom.Envelope;
|
||||
|
|
|
@ -38,7 +38,7 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
import java.util.TreeSet;
|
||||
import java.util.stream.Stream;
|
||||
import javax.annotation.concurrent.NotThreadSafe;
|
||||
import net.jcip.annotations.NotThreadSafe;
|
||||
import org.locationtech.jts.geom.Coordinate;
|
||||
import org.locationtech.jts.geom.CoordinateSequence;
|
||||
import org.locationtech.jts.geom.Geometry;
|
||||
|
|
|
@ -4,7 +4,7 @@ import com.onthegomap.planetiler.util.Format;
|
|||
import java.time.Duration;
|
||||
import java.util.Locale;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.concurrent.Immutable;
|
||||
import net.jcip.annotations.Immutable;
|
||||
|
||||
/**
|
||||
* A utility for measuring the wall and CPU time that this JVM consumes between snapshots.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package com.onthegomap.planetiler.stats;
|
||||
|
||||
import javax.annotation.concurrent.ThreadSafe;
|
||||
import net.jcip.annotations.ThreadSafe;
|
||||
|
||||
/**
|
||||
* Measures the amount of wall and CPU time that a task takes.
|
||||
|
|
|
@ -9,7 +9,7 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
import javax.annotation.concurrent.ThreadSafe;
|
||||
import net.jcip.annotations.ThreadSafe;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ import java.util.ArrayList;
|
|||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
import javax.annotation.concurrent.Immutable;
|
||||
import net.jcip.annotations.Immutable;
|
||||
|
||||
/**
|
||||
* A utility to download {@code planet.osm.pbf} files from public S3 sources such as
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.onthegomap.planetiler.util;
|
|||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
import javax.annotation.concurrent.ThreadSafe;
|
||||
import net.jcip.annotations.ThreadSafe;
|
||||
|
||||
/**
|
||||
* A utility for compressing commonly-used strings (i.e. layer name, tag attributes).
|
||||
|
|
|
@ -13,8 +13,8 @@ import java.util.Map;
|
|||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
import javax.annotation.concurrent.Immutable;
|
||||
import javax.annotation.concurrent.ThreadSafe;
|
||||
import net.jcip.annotations.Immutable;
|
||||
import net.jcip.annotations.ThreadSafe;
|
||||
|
||||
/**
|
||||
* A utility to search <a href="https://download.geofabrik.de/">Geofabrik Download Server</a> for a {@code .osm.pbf}
|
||||
|
|
|
@ -8,8 +8,7 @@ import java.util.Optional;
|
|||
import java.util.OptionalInt;
|
||||
import java.util.TreeMap;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
import javax.annotation.concurrent.NotThreadSafe;
|
||||
import javax.annotation.concurrent.ThreadSafe;
|
||||
import net.jcip.annotations.ThreadSafe;
|
||||
|
||||
/**
|
||||
* Tracks the feature attributes and zoom range of each layer to populate the archive output metadata.
|
||||
|
@ -110,7 +109,7 @@ public class LayerAttrStats {
|
|||
}
|
||||
|
||||
/** Accepts features from a single thread that will be combined across all threads in {@link #getTileStats()}. */
|
||||
@NotThreadSafe
|
||||
@ThreadSafe
|
||||
private class ThreadLocalHandler implements Updater {
|
||||
|
||||
private final Map<String, StatsForLayer> layers = new TreeMap<>();
|
||||
|
|
|
@ -11,7 +11,7 @@ import java.util.OptionalLong;
|
|||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
import java.util.function.Supplier;
|
||||
import java.util.stream.Collectors;
|
||||
import javax.annotation.concurrent.ThreadSafe;
|
||||
import net.jcip.annotations.ThreadSafe;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ import java.nio.channels.ClosedChannelException;
|
|||
import java.nio.channels.SeekableByteChannel;
|
||||
import java.util.Arrays;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
import javax.annotation.concurrent.NotThreadSafe;
|
||||
import net.jcip.annotations.NotThreadSafe;
|
||||
|
||||
/**
|
||||
* A {@link SeekableByteChannel} implementation that wraps a byte[].
|
||||
|
|
|
@ -4,8 +4,8 @@ import java.util.concurrent.ArrayBlockingQueue;
|
|||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
import java.util.function.Consumer;
|
||||
import javax.annotation.concurrent.NotThreadSafe;
|
||||
import javax.annotation.concurrent.ThreadSafe;
|
||||
import net.jcip.annotations.NotThreadSafe;
|
||||
import net.jcip.annotations.ThreadSafe;
|
||||
|
||||
/**
|
||||
* Redistributes work among worker threads when some finish early.
|
||||
|
|
Ładowanie…
Reference in New Issue