io.opentelemetry
opentelemetry-context
@@ -463,6 +469,302 @@
@javax.annotation.concurrent.NotThreadSafe
Removal of javax.annotation.concurrent usage
+ -
+ true
+
java.annotation.removed
+ method boolean[] io.trino.spi.block.AbstractArrayBlock::getValueIsNull()
+ method boolean[] io.trino.spi.block.AbstractArrayBlock::getValueIsNull()
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ method boolean[] io.trino.spi.block.AbstractMapBlock::getMapIsNull()
+ method boolean[] io.trino.spi.block.AbstractMapBlock::getMapIsNull()
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ method int[] io.trino.spi.block.AbstractRowBlock::getFieldBlockOffsets()
+ method int[] io.trino.spi.block.AbstractRowBlock::getFieldBlockOffsets()
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ method boolean[] io.trino.spi.block.AbstractRowBlock::getRowIsNull()
+ method boolean[] io.trino.spi.block.AbstractRowBlock::getRowIsNull()
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ method boolean[] io.trino.spi.block.ArrayBlock::getValueIsNull()
+ method boolean[] io.trino.spi.block.ArrayBlock::getValueIsNull()
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ method boolean[] io.trino.spi.block.ArrayBlockBuilder::getValueIsNull()
+ method boolean[] io.trino.spi.block.ArrayBlockBuilder::getValueIsNull()
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ parameter void io.trino.spi.block.ByteArrayBlockBuilder::<init>(===io.trino.spi.block.BlockBuilderStatus===, int)
+ parameter void io.trino.spi.block.ByteArrayBlockBuilder::<init>(===io.trino.spi.block.BlockBuilderStatus===, int)
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ parameter void io.trino.spi.block.Fixed12BlockBuilder::<init>(===io.trino.spi.block.BlockBuilderStatus===, int)
+ parameter void io.trino.spi.block.Fixed12BlockBuilder::<init>(===io.trino.spi.block.BlockBuilderStatus===, int)
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ parameter void io.trino.spi.block.Int128ArrayBlockBuilder::<init>(===io.trino.spi.block.BlockBuilderStatus===, int)
+ parameter void io.trino.spi.block.Int128ArrayBlockBuilder::<init>(===io.trino.spi.block.BlockBuilderStatus===, int)
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ parameter void io.trino.spi.block.IntArrayBlockBuilder::<init>(===io.trino.spi.block.BlockBuilderStatus===, int)
+ parameter void io.trino.spi.block.IntArrayBlockBuilder::<init>(===io.trino.spi.block.BlockBuilderStatus===, int)
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ class io.trino.spi.block.LazyBlock
+ class io.trino.spi.block.LazyBlock
+ @javax.annotation.concurrent.NotThreadSafe
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ parameter void io.trino.spi.block.LongArrayBlockBuilder::<init>(===io.trino.spi.block.BlockBuilderStatus===, int)
+ parameter void io.trino.spi.block.LongArrayBlockBuilder::<init>(===io.trino.spi.block.BlockBuilderStatus===, int)
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ method boolean[] io.trino.spi.block.MapBlock::getMapIsNull()
+ method boolean[] io.trino.spi.block.MapBlock::getMapIsNull()
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ method boolean[] io.trino.spi.block.MapBlockBuilder::getMapIsNull()
+ method boolean[] io.trino.spi.block.MapBlockBuilder::getMapIsNull()
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ class io.trino.spi.block.MapHashTables
+ class io.trino.spi.block.MapHashTables
+ @javax.annotation.concurrent.ThreadSafe
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ method int[] io.trino.spi.block.RowBlock::getFieldBlockOffsets()
+ method int[] io.trino.spi.block.RowBlock::getFieldBlockOffsets()
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ method boolean[] io.trino.spi.block.RowBlock::getRowIsNull()
+ method boolean[] io.trino.spi.block.RowBlock::getRowIsNull()
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ method int[] io.trino.spi.block.RowBlockBuilder::getFieldBlockOffsets()
+ method int[] io.trino.spi.block.RowBlockBuilder::getFieldBlockOffsets()
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ method boolean[] io.trino.spi.block.RowBlockBuilder::getRowIsNull()
+ method boolean[] io.trino.spi.block.RowBlockBuilder::getRowIsNull()
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ parameter long io.trino.spi.block.RunLengthEncodedBlock::getPositionsSizeInBytes(===boolean[]===, int)
+ parameter long io.trino.spi.block.RunLengthEncodedBlock::getPositionsSizeInBytes(===boolean[]===, int)
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ parameter void io.trino.spi.block.ShortArrayBlockBuilder::<init>(===io.trino.spi.block.BlockBuilderStatus===, int)
+ parameter void io.trino.spi.block.ShortArrayBlockBuilder::<init>(===io.trino.spi.block.BlockBuilderStatus===, int)
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ parameter void io.trino.spi.block.VariableWidthBlockBuilder::<init>(===io.trino.spi.block.BlockBuilderStatus===, int, int)
+ parameter void io.trino.spi.block.VariableWidthBlockBuilder::<init>(===io.trino.spi.block.BlockBuilderStatus===, int, int)
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ method java.lang.String io.trino.spi.connector.ColumnMetadata::getComment()
+ method java.lang.String io.trino.spi.connector.ColumnMetadata::getComment()
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ method java.lang.String io.trino.spi.connector.ColumnMetadata::getExtraInfo()
+ method java.lang.String io.trino.spi.connector.ColumnMetadata::getExtraInfo()
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ method io.trino.spi.connector.ConnectorTableHandle io.trino.spi.connector.ConnectorMetadata::getTableHandle(io.trino.spi.connector.ConnectorSession, io.trino.spi.connector.SchemaTableName)
+ method io.trino.spi.connector.ConnectorTableHandle io.trino.spi.connector.ConnectorMetadata::getTableHandle(io.trino.spi.connector.ConnectorSession, io.trino.spi.connector.SchemaTableName)
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ method io.trino.spi.connector.ConnectorTableHandle io.trino.spi.connector.ConnectorMetadata::getTableHandle(io.trino.spi.connector.ConnectorSession, io.trino.spi.connector.SchemaTableName, java.util.Optional<io.trino.spi.connector.ConnectorTableVersion>, java.util.Optional<io.trino.spi.connector.ConnectorTableVersion>)
+ method io.trino.spi.connector.ConnectorTableHandle io.trino.spi.connector.ConnectorMetadata::getTableHandle(io.trino.spi.connector.ConnectorSession, io.trino.spi.connector.SchemaTableName, java.util.Optional<io.trino.spi.connector.ConnectorTableVersion>, java.util.Optional<io.trino.spi.connector.ConnectorTableVersion>)
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ parameter void io.trino.spi.expression.Constant::<init>(===java.lang.Object===, io.trino.spi.type.Type)
+ parameter void io.trino.spi.expression.Constant::<init>(===java.lang.Object===, io.trino.spi.type.Type)
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ method java.lang.Object io.trino.spi.expression.Constant::getValue()
+ method java.lang.Object io.trino.spi.expression.Constant::getValue()
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ parameter io.trino.spi.block.Block io.trino.spi.predicate.Utils::nativeValueToBlock(io.trino.spi.type.Type, ===java.lang.Object===)
+ parameter io.trino.spi.block.Block io.trino.spi.predicate.Utils::nativeValueToBlock(io.trino.spi.type.Type, ===java.lang.Object===)
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ parameter void io.trino.spi.procedure.Procedure.Argument::<init>(java.lang.String, boolean, io.trino.spi.type.Type, boolean, ===java.lang.Object===)
+ parameter void io.trino.spi.procedure.Procedure.Argument::<init>(java.lang.String, boolean, io.trino.spi.type.Type, boolean, ===java.lang.Object===)
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ parameter void io.trino.spi.procedure.Procedure.Argument::<init>(java.lang.String, io.trino.spi.type.Type, boolean, ===java.lang.Object===)
+ parameter void io.trino.spi.procedure.Procedure.Argument::<init>(java.lang.String, io.trino.spi.type.Type, boolean, ===java.lang.Object===)
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ class io.trino.spi.type.NamedTypeSignature
+ class io.trino.spi.type.NamedTypeSignature
+ @javax.annotation.concurrent.Immutable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ class io.trino.spi.type.RowFieldName
+ class io.trino.spi.type.RowFieldName
+ @javax.annotation.concurrent.Immutable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ class io.trino.spi.type.TypeSignature
+ class io.trino.spi.type.TypeSignature
+ @javax.annotation.concurrent.Immutable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ class io.trino.spi.Location
+ class io.trino.spi.Location
+ @javax.annotation.concurrent.Immutable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ class io.trino.spi.type.TypeSignatureParameter
+ class io.trino.spi.type.TypeSignatureParameter
+ @javax.annotation.concurrent.Immutable
+ Migration to jakarta namespace
+
+ -
+ true
+
java.annotation.removed
+ parameter void io.trino.spi.type.TypeUtils::writeNativeValue(io.trino.spi.type.Type, io.trino.spi.block.BlockBuilder, ===java.lang.Object===)
+ parameter void io.trino.spi.type.TypeUtils::writeNativeValue(io.trino.spi.type.Type, io.trino.spi.block.BlockBuilder, ===java.lang.Object===)
+ @javax.annotation.Nullable
+ Migration to jakarta namespace
+
diff --git a/core/trino-spi/src/main/java/io/trino/spi/Location.java b/core/trino-spi/src/main/java/io/trino/spi/Location.java
index 33b361f6d548..9a20b7757957 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/Location.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/Location.java
@@ -13,7 +13,7 @@
*/
package io.trino.spi;
-import javax.annotation.concurrent.Immutable;
+import com.google.errorprone.annotations.Immutable;
@Immutable
public class Location
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/AbstractArrayBlock.java b/core/trino-spi/src/main/java/io/trino/spi/block/AbstractArrayBlock.java
index f12e296a6cf5..3c9fb3154400 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/AbstractArrayBlock.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/AbstractArrayBlock.java
@@ -13,7 +13,7 @@
*/
package io.trino.spi.block;
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.List;
import java.util.OptionalInt;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/AbstractMapBlock.java b/core/trino-spi/src/main/java/io/trino/spi/block/AbstractMapBlock.java
index 0a9da03669ea..435d3ce1e832 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/AbstractMapBlock.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/AbstractMapBlock.java
@@ -15,8 +15,7 @@
package io.trino.spi.block;
import io.trino.spi.type.MapType;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.Arrays;
import java.util.List;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/AbstractRowBlock.java b/core/trino-spi/src/main/java/io/trino/spi/block/AbstractRowBlock.java
index 6017bb29a8ed..ad3c6f773470 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/AbstractRowBlock.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/AbstractRowBlock.java
@@ -13,7 +13,7 @@
*/
package io.trino.spi.block;
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.List;
import java.util.OptionalInt;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/ArrayBlock.java b/core/trino-spi/src/main/java/io/trino/spi/block/ArrayBlock.java
index d4bdbe3a0bdb..c617bd96fdca 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/ArrayBlock.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/ArrayBlock.java
@@ -13,7 +13,7 @@
*/
package io.trino.spi.block;
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.Optional;
import java.util.function.ObjLongConsumer;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/ArrayBlockBuilder.java b/core/trino-spi/src/main/java/io/trino/spi/block/ArrayBlockBuilder.java
index d660e6035465..31e793dcb300 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/ArrayBlockBuilder.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/ArrayBlockBuilder.java
@@ -14,8 +14,7 @@
package io.trino.spi.block;
import io.trino.spi.type.Type;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.Arrays;
import java.util.function.ObjLongConsumer;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/BlockUtil.java b/core/trino-spi/src/main/java/io/trino/spi/block/BlockUtil.java
index 0a460061124d..69dd522d696c 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/BlockUtil.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/BlockUtil.java
@@ -15,8 +15,7 @@
import io.airlift.slice.Slice;
import io.airlift.slice.Slices;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.Arrays;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/ByteArrayBlock.java b/core/trino-spi/src/main/java/io/trino/spi/block/ByteArrayBlock.java
index b781c0cf3069..da643b1aa370 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/ByteArrayBlock.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/ByteArrayBlock.java
@@ -15,8 +15,7 @@
import io.airlift.slice.Slice;
import io.airlift.slice.Slices;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.Optional;
import java.util.OptionalInt;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/ByteArrayBlockBuilder.java b/core/trino-spi/src/main/java/io/trino/spi/block/ByteArrayBlockBuilder.java
index acbd7cd8beff..3a056d6cf4cb 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/ByteArrayBlockBuilder.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/ByteArrayBlockBuilder.java
@@ -15,8 +15,7 @@
import io.airlift.slice.Slice;
import io.airlift.slice.Slices;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.Arrays;
import java.util.OptionalInt;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/ColumnarRow.java b/core/trino-spi/src/main/java/io/trino/spi/block/ColumnarRow.java
index f7685f1e09cd..6eb174484b8c 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/ColumnarRow.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/ColumnarRow.java
@@ -13,7 +13,7 @@
*/
package io.trino.spi.block;
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import static java.util.Objects.requireNonNull;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/EncoderUtil.java b/core/trino-spi/src/main/java/io/trino/spi/block/EncoderUtil.java
index 5161ff32be8c..5f415a25e5c5 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/EncoderUtil.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/EncoderUtil.java
@@ -15,8 +15,7 @@
import io.airlift.slice.SliceInput;
import io.airlift.slice.SliceOutput;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.io.IOException;
import java.io.UncheckedIOException;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/Fixed12Block.java b/core/trino-spi/src/main/java/io/trino/spi/block/Fixed12Block.java
index f6076e6a470b..a90717db3b18 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/Fixed12Block.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/Fixed12Block.java
@@ -15,8 +15,7 @@
import io.airlift.slice.Slice;
import io.airlift.slice.Slices;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.Optional;
import java.util.OptionalInt;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/Fixed12BlockBuilder.java b/core/trino-spi/src/main/java/io/trino/spi/block/Fixed12BlockBuilder.java
index 38b9c5f20bfc..4a8f28dacc74 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/Fixed12BlockBuilder.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/Fixed12BlockBuilder.java
@@ -15,8 +15,7 @@
import io.airlift.slice.Slice;
import io.airlift.slice.Slices;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.Arrays;
import java.util.OptionalInt;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/Int128ArrayBlock.java b/core/trino-spi/src/main/java/io/trino/spi/block/Int128ArrayBlock.java
index c8e4a5ef3aaa..ec33888f4c12 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/Int128ArrayBlock.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/Int128ArrayBlock.java
@@ -15,8 +15,7 @@
import io.airlift.slice.Slice;
import io.airlift.slice.Slices;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.Optional;
import java.util.OptionalInt;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/Int128ArrayBlockBuilder.java b/core/trino-spi/src/main/java/io/trino/spi/block/Int128ArrayBlockBuilder.java
index 692e48610ce2..29608d8f0c95 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/Int128ArrayBlockBuilder.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/Int128ArrayBlockBuilder.java
@@ -15,8 +15,7 @@
import io.airlift.slice.Slice;
import io.airlift.slice.Slices;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.Arrays;
import java.util.OptionalInt;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/IntArrayBlock.java b/core/trino-spi/src/main/java/io/trino/spi/block/IntArrayBlock.java
index 34bf08c7ba9a..9ab78927e464 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/IntArrayBlock.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/IntArrayBlock.java
@@ -16,8 +16,7 @@
import io.airlift.slice.Slice;
import io.airlift.slice.Slices;
import io.trino.spi.Experimental;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.Optional;
import java.util.OptionalInt;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/IntArrayBlockBuilder.java b/core/trino-spi/src/main/java/io/trino/spi/block/IntArrayBlockBuilder.java
index 3d5f1125d49a..6686af86ac95 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/IntArrayBlockBuilder.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/IntArrayBlockBuilder.java
@@ -15,8 +15,7 @@
import io.airlift.slice.Slice;
import io.airlift.slice.Slices;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.Arrays;
import java.util.OptionalInt;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/LazyBlock.java b/core/trino-spi/src/main/java/io/trino/spi/block/LazyBlock.java
index 3c85d9d2b692..dc6fb5f00ddb 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/LazyBlock.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/LazyBlock.java
@@ -15,8 +15,7 @@
import io.airlift.slice.Slice;
import io.airlift.slice.SliceOutput;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.ArrayList;
import java.util.List;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/LongArrayBlock.java b/core/trino-spi/src/main/java/io/trino/spi/block/LongArrayBlock.java
index 7c7431979405..687f7e4b0bfd 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/LongArrayBlock.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/LongArrayBlock.java
@@ -15,8 +15,7 @@
import io.airlift.slice.Slice;
import io.airlift.slice.Slices;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.Optional;
import java.util.OptionalInt;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/LongArrayBlockBuilder.java b/core/trino-spi/src/main/java/io/trino/spi/block/LongArrayBlockBuilder.java
index 9a36b0a5ddfd..6f5158bef8d4 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/LongArrayBlockBuilder.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/LongArrayBlockBuilder.java
@@ -15,8 +15,7 @@
import io.airlift.slice.Slice;
import io.airlift.slice.Slices;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.Arrays;
import java.util.OptionalInt;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/MapBlock.java b/core/trino-spi/src/main/java/io/trino/spi/block/MapBlock.java
index b19ea6ea125b..b37cf990186d 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/MapBlock.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/MapBlock.java
@@ -15,8 +15,7 @@
package io.trino.spi.block;
import io.trino.spi.type.MapType;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.Optional;
import java.util.function.ObjLongConsumer;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/MapBlockBuilder.java b/core/trino-spi/src/main/java/io/trino/spi/block/MapBlockBuilder.java
index c64276b4e1ab..c5b1b68f7876 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/MapBlockBuilder.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/MapBlockBuilder.java
@@ -15,8 +15,7 @@
package io.trino.spi.block;
import io.trino.spi.type.MapType;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.Arrays;
import java.util.Optional;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/MapHashTables.java b/core/trino-spi/src/main/java/io/trino/spi/block/MapHashTables.java
index 7eb79a3cc470..3c297f0350f6 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/MapHashTables.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/MapHashTables.java
@@ -13,12 +13,11 @@
*/
package io.trino.spi.block;
+import com.google.errorprone.annotations.ThreadSafe;
+import com.google.errorprone.annotations.concurrent.GuardedBy;
import io.trino.spi.TrinoException;
import io.trino.spi.type.MapType;
-
-import javax.annotation.Nullable;
-import javax.annotation.concurrent.GuardedBy;
-import javax.annotation.concurrent.ThreadSafe;
+import jakarta.annotation.Nullable;
import java.util.Arrays;
import java.util.Optional;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/RowBlock.java b/core/trino-spi/src/main/java/io/trino/spi/block/RowBlock.java
index e12440f18be2..fe01877938af 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/RowBlock.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/RowBlock.java
@@ -13,7 +13,7 @@
*/
package io.trino.spi.block;
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.Optional;
import java.util.function.ObjLongConsumer;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/RowBlockBuilder.java b/core/trino-spi/src/main/java/io/trino/spi/block/RowBlockBuilder.java
index 7cf82a1541b8..69b2c2ac5822 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/RowBlockBuilder.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/RowBlockBuilder.java
@@ -15,8 +15,7 @@
package io.trino.spi.block;
import io.trino.spi.type.Type;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.Arrays;
import java.util.List;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/RunLengthEncodedBlock.java b/core/trino-spi/src/main/java/io/trino/spi/block/RunLengthEncodedBlock.java
index 5da98c60a087..996d35398c87 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/RunLengthEncodedBlock.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/RunLengthEncodedBlock.java
@@ -17,8 +17,7 @@
import io.airlift.slice.SliceOutput;
import io.trino.spi.predicate.Utils;
import io.trino.spi.type.Type;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.List;
import java.util.OptionalInt;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/ShortArrayBlock.java b/core/trino-spi/src/main/java/io/trino/spi/block/ShortArrayBlock.java
index ca1d5a9dd131..7e285fdc1c78 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/ShortArrayBlock.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/ShortArrayBlock.java
@@ -15,8 +15,7 @@
import io.airlift.slice.Slice;
import io.airlift.slice.Slices;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.Optional;
import java.util.OptionalInt;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/ShortArrayBlockBuilder.java b/core/trino-spi/src/main/java/io/trino/spi/block/ShortArrayBlockBuilder.java
index f99193068382..a11a67953a59 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/ShortArrayBlockBuilder.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/ShortArrayBlockBuilder.java
@@ -15,8 +15,7 @@
import io.airlift.slice.Slice;
import io.airlift.slice.Slices;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.Arrays;
import java.util.OptionalInt;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/VariableWidthBlock.java b/core/trino-spi/src/main/java/io/trino/spi/block/VariableWidthBlock.java
index 2b94422c1eb6..f66655efebf0 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/VariableWidthBlock.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/VariableWidthBlock.java
@@ -16,8 +16,7 @@
import io.airlift.slice.Slice;
import io.airlift.slice.SliceOutput;
import io.airlift.slice.Slices;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.Optional;
import java.util.OptionalInt;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/block/VariableWidthBlockBuilder.java b/core/trino-spi/src/main/java/io/trino/spi/block/VariableWidthBlockBuilder.java
index 7d53dd3027ee..7becbf38e070 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/block/VariableWidthBlockBuilder.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/block/VariableWidthBlockBuilder.java
@@ -17,8 +17,7 @@
import io.airlift.slice.Slice;
import io.airlift.slice.SliceOutput;
import io.airlift.slice.Slices;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.Arrays;
import java.util.OptionalInt;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/connector/ColumnMetadata.java b/core/trino-spi/src/main/java/io/trino/spi/connector/ColumnMetadata.java
index 1198edf79d41..f54fe7e67873 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/connector/ColumnMetadata.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/connector/ColumnMetadata.java
@@ -14,8 +14,7 @@
package io.trino.spi.connector;
import io.trino.spi.type.Type;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.LinkedHashMap;
import java.util.Map;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/connector/ConnectorMetadata.java b/core/trino-spi/src/main/java/io/trino/spi/connector/ConnectorMetadata.java
index 40ca581b37b0..433a6254294a 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/connector/ConnectorMetadata.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/connector/ConnectorMetadata.java
@@ -36,8 +36,7 @@
import io.trino.spi.statistics.TableStatistics;
import io.trino.spi.statistics.TableStatisticsMetadata;
import io.trino.spi.type.Type;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.ArrayList;
import java.util.Collection;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/exchange/Exchange.java b/core/trino-spi/src/main/java/io/trino/spi/exchange/Exchange.java
index 2eade75d3004..ad266d75bc25 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/exchange/Exchange.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/exchange/Exchange.java
@@ -13,10 +13,9 @@
*/
package io.trino.spi.exchange;
+import com.google.errorprone.annotations.ThreadSafe;
import io.trino.spi.Experimental;
-import javax.annotation.concurrent.ThreadSafe;
-
import java.io.Closeable;
import java.util.concurrent.CompletableFuture;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/exchange/ExchangeManager.java b/core/trino-spi/src/main/java/io/trino/spi/exchange/ExchangeManager.java
index 487b2200c5a7..431904072539 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/exchange/ExchangeManager.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/exchange/ExchangeManager.java
@@ -13,11 +13,10 @@
*/
package io.trino.spi.exchange;
+import com.google.errorprone.annotations.ThreadSafe;
import io.airlift.slice.Slice;
import io.trino.spi.Experimental;
-import javax.annotation.concurrent.ThreadSafe;
-
/**
* Service provider interface for an external exchange
*
diff --git a/core/trino-spi/src/main/java/io/trino/spi/exchange/ExchangeSink.java b/core/trino-spi/src/main/java/io/trino/spi/exchange/ExchangeSink.java
index efda659db6cc..6cf893baafcb 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/exchange/ExchangeSink.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/exchange/ExchangeSink.java
@@ -13,11 +13,10 @@
*/
package io.trino.spi.exchange;
+import com.google.errorprone.annotations.ThreadSafe;
import io.airlift.slice.Slice;
import io.trino.spi.Experimental;
-import javax.annotation.concurrent.ThreadSafe;
-
import java.util.concurrent.CompletableFuture;
@ThreadSafe
diff --git a/core/trino-spi/src/main/java/io/trino/spi/exchange/ExchangeSource.java b/core/trino-spi/src/main/java/io/trino/spi/exchange/ExchangeSource.java
index 96b2e5afcf39..039788af0216 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/exchange/ExchangeSource.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/exchange/ExchangeSource.java
@@ -13,11 +13,10 @@
*/
package io.trino.spi.exchange;
+import com.google.errorprone.annotations.ThreadSafe;
import io.airlift.slice.Slice;
import io.trino.spi.Experimental;
-
-import javax.annotation.Nullable;
-import javax.annotation.concurrent.ThreadSafe;
+import jakarta.annotation.Nullable;
import java.io.Closeable;
import java.util.List;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/expression/Constant.java b/core/trino-spi/src/main/java/io/trino/spi/expression/Constant.java
index aad723864288..f950aae04901 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/expression/Constant.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/expression/Constant.java
@@ -16,8 +16,7 @@
import io.airlift.slice.Slice;
import io.trino.spi.type.BooleanType;
import io.trino.spi.type.Type;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.List;
import java.util.Objects;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/function/table/ArgumentSpecification.java b/core/trino-spi/src/main/java/io/trino/spi/function/table/ArgumentSpecification.java
index 48e9ab483078..ff8fa9583b5c 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/function/table/ArgumentSpecification.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/function/table/ArgumentSpecification.java
@@ -14,8 +14,7 @@
package io.trino.spi.function.table;
import io.trino.spi.Experimental;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import static io.trino.spi.function.table.Preconditions.checkArgument;
import static io.trino.spi.function.table.Preconditions.checkNotNullOrEmpty;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/function/table/ScalarArgument.java b/core/trino-spi/src/main/java/io/trino/spi/function/table/ScalarArgument.java
index 481ae76fb118..c059f1fcbca9 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/function/table/ScalarArgument.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/function/table/ScalarArgument.java
@@ -19,8 +19,7 @@
import io.trino.spi.expression.ConnectorExpression;
import io.trino.spi.predicate.NullableValue;
import io.trino.spi.type.Type;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import static java.util.Objects.requireNonNull;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/function/table/TableFunctionProcessorState.java b/core/trino-spi/src/main/java/io/trino/spi/function/table/TableFunctionProcessorState.java
index 0149adadf149..8b235210e57d 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/function/table/TableFunctionProcessorState.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/function/table/TableFunctionProcessorState.java
@@ -15,8 +15,7 @@
import io.trino.spi.Experimental;
import io.trino.spi.Page;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.concurrent.CompletableFuture;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/predicate/Utils.java b/core/trino-spi/src/main/java/io/trino/spi/predicate/Utils.java
index 8e1965005ffc..578d54deaafa 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/predicate/Utils.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/predicate/Utils.java
@@ -17,8 +17,7 @@
import io.trino.spi.block.BlockBuilder;
import io.trino.spi.type.Type;
import io.trino.spi.type.TypeOperators;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import static io.trino.spi.type.TypeUtils.readNativeValue;
import static io.trino.spi.type.TypeUtils.writeNativeValue;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/procedure/Procedure.java b/core/trino-spi/src/main/java/io/trino/spi/procedure/Procedure.java
index 5751f13ddefe..ce6cf97c36a5 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/procedure/Procedure.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/procedure/Procedure.java
@@ -16,8 +16,7 @@
import io.trino.spi.connector.ConnectorAccessControl;
import io.trino.spi.connector.ConnectorSession;
import io.trino.spi.type.Type;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.lang.invoke.MethodHandle;
import java.util.HashSet;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/type/NamedTypeSignature.java b/core/trino-spi/src/main/java/io/trino/spi/type/NamedTypeSignature.java
index 90309c2d3460..f0f3ac4382bf 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/type/NamedTypeSignature.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/type/NamedTypeSignature.java
@@ -13,7 +13,7 @@
*/
package io.trino.spi.type;
-import javax.annotation.concurrent.Immutable;
+import com.google.errorprone.annotations.Immutable;
import java.util.Objects;
import java.util.Optional;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/type/RowFieldName.java b/core/trino-spi/src/main/java/io/trino/spi/type/RowFieldName.java
index add8fccb7df0..9ff4c28c5bca 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/type/RowFieldName.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/type/RowFieldName.java
@@ -13,7 +13,7 @@
*/
package io.trino.spi.type;
-import javax.annotation.concurrent.Immutable;
+import com.google.errorprone.annotations.Immutable;
import java.util.Objects;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/type/TypeSignature.java b/core/trino-spi/src/main/java/io/trino/spi/type/TypeSignature.java
index bbc69cf6b8ec..3beba11937ba 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/type/TypeSignature.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/type/TypeSignature.java
@@ -14,8 +14,7 @@
package io.trino.spi.type;
import com.fasterxml.jackson.annotation.JsonValue;
-
-import javax.annotation.concurrent.Immutable;
+import com.google.errorprone.annotations.Immutable;
import java.util.ArrayList;
import java.util.Arrays;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/type/TypeSignatureParameter.java b/core/trino-spi/src/main/java/io/trino/spi/type/TypeSignatureParameter.java
index 0e0086dcff12..3f6a03de7388 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/type/TypeSignatureParameter.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/type/TypeSignatureParameter.java
@@ -13,7 +13,7 @@
*/
package io.trino.spi.type;
-import javax.annotation.concurrent.Immutable;
+import com.google.errorprone.annotations.Immutable;
import java.util.Objects;
import java.util.Optional;
diff --git a/core/trino-spi/src/main/java/io/trino/spi/type/TypeUtils.java b/core/trino-spi/src/main/java/io/trino/spi/type/TypeUtils.java
index 7f435105ccad..94ef3eefd395 100644
--- a/core/trino-spi/src/main/java/io/trino/spi/type/TypeUtils.java
+++ b/core/trino-spi/src/main/java/io/trino/spi/type/TypeUtils.java
@@ -18,8 +18,7 @@
import io.trino.spi.TrinoException;
import io.trino.spi.block.Block;
import io.trino.spi.block.BlockBuilder;
-
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import static io.trino.spi.StandardErrorCode.NOT_SUPPORTED;
import static io.trino.spi.type.DoubleType.DOUBLE;
diff --git a/lib/trino-cache/pom.xml b/lib/trino-cache/pom.xml
index 43cf2bab5bee..0febcc1083c8 100644
--- a/lib/trino-cache/pom.xml
+++ b/lib/trino-cache/pom.xml
@@ -17,11 +17,6 @@
-
- com.google.code.findbugs
- jsr305
-
-
com.google.errorprone
error_prone_annotations
@@ -32,6 +27,11 @@
guava
+
+ jakarta.annotation
+ jakarta.annotation-api
+
+
org.gaul
modernizer-maven-annotations
diff --git a/lib/trino-cache/src/main/java/io/trino/cache/ElementTypesAreNonnullByDefault.java b/lib/trino-cache/src/main/java/io/trino/cache/ElementTypesAreNonnullByDefault.java
index 95a43aed87ab..f1900465c540 100644
--- a/lib/trino-cache/src/main/java/io/trino/cache/ElementTypesAreNonnullByDefault.java
+++ b/lib/trino-cache/src/main/java/io/trino/cache/ElementTypesAreNonnullByDefault.java
@@ -13,15 +13,11 @@
*/
package io.trino.cache;
-import javax.annotation.Nonnull;
-import javax.annotation.meta.TypeQualifierDefault;
+import jakarta.annotation.Nonnull;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
-import static java.lang.annotation.ElementType.FIELD;
-import static java.lang.annotation.ElementType.METHOD;
-import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.SOURCE;
@@ -31,6 +27,5 @@
*/
@Retention(SOURCE)
@Target(TYPE)
-@TypeQualifierDefault({FIELD, METHOD, PARAMETER})
@Nonnull
@interface ElementTypesAreNonnullByDefault {}
diff --git a/lib/trino-cache/src/main/java/io/trino/cache/EmptyCache.java b/lib/trino-cache/src/main/java/io/trino/cache/EmptyCache.java
index d545a722e29a..73e587c5fe0d 100644
--- a/lib/trino-cache/src/main/java/io/trino/cache/EmptyCache.java
+++ b/lib/trino-cache/src/main/java/io/trino/cache/EmptyCache.java
@@ -20,9 +20,7 @@
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.google.common.util.concurrent.UncheckedExecutionException;
-
-import javax.annotation.CheckForNull;
-import javax.annotation.Nullable;
+import jakarta.annotation.Nullable;
import java.util.Collection;
import java.util.Map;
@@ -46,7 +44,6 @@ class EmptyCache
this.statsCounter = recordStats ? new SimpleStatsCounter() : new NoopStatsCounter();
}
- @CheckForNull
@Override
public V getIfPresent(Object key)
{
diff --git a/lib/trino-cache/src/main/java/io/trino/cache/EvictableCache.java b/lib/trino-cache/src/main/java/io/trino/cache/EvictableCache.java
index 54ab01b74f7a..c8bdb0784069 100644
--- a/lib/trino-cache/src/main/java/io/trino/cache/EvictableCache.java
+++ b/lib/trino-cache/src/main/java/io/trino/cache/EvictableCache.java
@@ -24,11 +24,9 @@
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.util.concurrent.ListenableFuture;
+import jakarta.annotation.Nullable;
import org.gaul.modernizer_maven_annotations.SuppressModernizer;
-import javax.annotation.CheckForNull;
-import javax.annotation.Nullable;
-
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
@@ -92,7 +90,6 @@ private static LoadingCache buildUnsafeCache(CacheBuilder super K
return cacheBuilder.build(cacheLoader);
}
- @CheckForNull
@Override
public V getIfPresent(Object key)
{
diff --git a/lib/trino-filesystem-azure/pom.xml b/lib/trino-filesystem-azure/pom.xml
index 6f3396e7ec28..1601a89ca6be 100644
--- a/lib/trino-filesystem-azure/pom.xml
+++ b/lib/trino-filesystem-azure/pom.xml
@@ -101,8 +101,8 @@
- javax.validation
- validation-api
+ jakarta.validation
+ jakarta.validation-api
diff --git a/lib/trino-filesystem-azure/src/main/java/io/trino/filesystem/azure/AzureAuthAccessKeyConfig.java b/lib/trino-filesystem-azure/src/main/java/io/trino/filesystem/azure/AzureAuthAccessKeyConfig.java
index 5d93d6c59aaa..e848f4ff1164 100644
--- a/lib/trino-filesystem-azure/src/main/java/io/trino/filesystem/azure/AzureAuthAccessKeyConfig.java
+++ b/lib/trino-filesystem-azure/src/main/java/io/trino/filesystem/azure/AzureAuthAccessKeyConfig.java
@@ -15,8 +15,7 @@
import io.airlift.configuration.Config;
import io.airlift.configuration.ConfigSecuritySensitive;
-
-import javax.validation.constraints.NotEmpty;
+import jakarta.validation.constraints.NotEmpty;
public class AzureAuthAccessKeyConfig
{
diff --git a/lib/trino-filesystem-azure/src/main/java/io/trino/filesystem/azure/AzureAuthOAuthConfig.java b/lib/trino-filesystem-azure/src/main/java/io/trino/filesystem/azure/AzureAuthOAuthConfig.java
index c2b4b232c29e..31187efe1836 100644
--- a/lib/trino-filesystem-azure/src/main/java/io/trino/filesystem/azure/AzureAuthOAuthConfig.java
+++ b/lib/trino-filesystem-azure/src/main/java/io/trino/filesystem/azure/AzureAuthOAuthConfig.java
@@ -15,8 +15,7 @@
import io.airlift.configuration.Config;
import io.airlift.configuration.ConfigSecuritySensitive;
-
-import javax.validation.constraints.NotEmpty;
+import jakarta.validation.constraints.NotEmpty;
public class AzureAuthOAuthConfig
{
diff --git a/lib/trino-filesystem-azure/src/main/java/io/trino/filesystem/azure/AzureFileSystemConfig.java b/lib/trino-filesystem-azure/src/main/java/io/trino/filesystem/azure/AzureFileSystemConfig.java
index cce572498ed1..a753f52bba33 100644
--- a/lib/trino-filesystem-azure/src/main/java/io/trino/filesystem/azure/AzureFileSystemConfig.java
+++ b/lib/trino-filesystem-azure/src/main/java/io/trino/filesystem/azure/AzureFileSystemConfig.java
@@ -16,8 +16,7 @@
import io.airlift.configuration.Config;
import io.airlift.units.DataSize;
import io.airlift.units.DataSize.Unit;
-
-import javax.validation.constraints.NotNull;
+import jakarta.validation.constraints.NotNull;
public class AzureFileSystemConfig
{
diff --git a/lib/trino-filesystem-s3/pom.xml b/lib/trino-filesystem-s3/pom.xml
index 57e7967c9d3b..700f385a37e6 100644
--- a/lib/trino-filesystem-s3/pom.xml
+++ b/lib/trino-filesystem-s3/pom.xml
@@ -58,8 +58,8 @@
- javax.validation
- validation-api
+ jakarta.validation
+ jakarta.validation-api
diff --git a/lib/trino-filesystem-s3/src/main/java/io/trino/filesystem/s3/S3FileSystemConfig.java b/lib/trino-filesystem-s3/src/main/java/io/trino/filesystem/s3/S3FileSystemConfig.java
index 95003b08adc1..616e79e7c54b 100644
--- a/lib/trino-filesystem-s3/src/main/java/io/trino/filesystem/s3/S3FileSystemConfig.java
+++ b/lib/trino-filesystem-s3/src/main/java/io/trino/filesystem/s3/S3FileSystemConfig.java
@@ -20,9 +20,8 @@
import io.airlift.units.DataSize;
import io.airlift.units.MaxDataSize;
import io.airlift.units.MinDataSize;
-
-import javax.validation.constraints.Min;
-import javax.validation.constraints.NotNull;
+import jakarta.validation.constraints.Min;
+import jakarta.validation.constraints.NotNull;
import static io.airlift.units.DataSize.Unit.MEGABYTE;
diff --git a/lib/trino-filesystem/pom.xml b/lib/trino-filesystem/pom.xml
index e56596932961..038cbdc009b8 100644
--- a/lib/trino-filesystem/pom.xml
+++ b/lib/trino-filesystem/pom.xml
@@ -59,8 +59,8 @@
- com.google.code.findbugs
- jsr305
+ com.google.errorprone
+ error_prone_annotations
runtime
diff --git a/lib/trino-filesystem/src/test/java/io/trino/filesystem/TrackingFileSystemFactory.java b/lib/trino-filesystem/src/test/java/io/trino/filesystem/TrackingFileSystemFactory.java
index ebe7af333ce5..6732b3186ff9 100644
--- a/lib/trino-filesystem/src/test/java/io/trino/filesystem/TrackingFileSystemFactory.java
+++ b/lib/trino-filesystem/src/test/java/io/trino/filesystem/TrackingFileSystemFactory.java
@@ -14,11 +14,10 @@
package io.trino.filesystem;
import com.google.common.collect.ImmutableMap;
+import com.google.errorprone.annotations.Immutable;
import io.trino.memory.context.AggregatedMemoryContext;
import io.trino.spi.security.ConnectorIdentity;
-import javax.annotation.concurrent.Immutable;
-
import java.io.IOException;
import java.io.OutputStream;
import java.time.Instant;
diff --git a/lib/trino-geospatial-toolkit/pom.xml b/lib/trino-geospatial-toolkit/pom.xml
index d0356388065e..20b89b164489 100644
--- a/lib/trino-geospatial-toolkit/pom.xml
+++ b/lib/trino-geospatial-toolkit/pom.xml
@@ -36,12 +36,6 @@
jackson-databind
-