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
dependabot[bot] 2025-03-31 05:50:03 -04:00 zatwierdzone przez GitHub
rodzic 7dd1338b0f
commit a68c321e97
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
22 zmienionych plików z 33 dodań i 30 usunięć

Wyświetl plik

@ -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>

Wyświetl plik

@ -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;

Wyświetl plik

@ -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,

Wyświetl plik

@ -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

Wyświetl plik

@ -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;

Wyświetl plik

@ -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;

Wyświetl plik

@ -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

Wyświetl plik

@ -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;

Wyświetl plik

@ -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();

Wyświetl plik

@ -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);
}

Wyświetl plik

@ -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;

Wyświetl plik

@ -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;

Wyświetl plik

@ -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.

Wyświetl plik

@ -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.

Wyświetl plik

@ -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;

Wyświetl plik

@ -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

Wyświetl plik

@ -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).

Wyświetl plik

@ -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}

Wyświetl plik

@ -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<>();

Wyświetl plik

@ -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;

Wyświetl plik

@ -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[].

Wyświetl plik

@ -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.