Skip to content

Commit 84d720c

Browse files
committed
chore: remove redundant dependency
1 parent 43c4095 commit 84d720c

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

google-cloud-spanner/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -455,12 +455,6 @@
455455
<artifactId>opentelemetry-sdk-testing</artifactId>
456456
<scope>test</scope>
457457
</dependency>
458-
<dependency>
459-
<groupId>org.jetbrains</groupId>
460-
<artifactId>annotations</artifactId>
461-
<version>24.1.0</version>
462-
<scope>compile</scope>
463-
</dependency>
464458
</dependencies>
465459
<profiles>
466460
<profile>

google-cloud-spanner/src/main/java/com/google/cloud/spanner/Interval.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import java.math.BigInteger;
2323
import java.util.regex.Matcher;
2424
import java.util.regex.Pattern;
25-
import org.jetbrains.annotations.NotNull;
25+
import javax.annotation.Nonnull;
2626

2727
/**
2828
* Represents the time duration as a combination of months, days and nanoseconds. Nanoseconds are
@@ -120,7 +120,7 @@ public static Interval ofMicroseconds(long micros) {
120120
}
121121

122122
/** Creates an interval with specified number of nanoseconds. */
123-
public static Interval ofNanoseconds(@NotNull BigInteger nanos) {
123+
public static Interval ofNanoseconds(@Nonnull BigInteger nanos) {
124124
return builder().setNanoseconds(nanos).build();
125125
}
126126

google-cloud-spanner/src/main/java/com/google/cloud/spanner/Value.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
import javax.annotation.Nonnull;
5353
import javax.annotation.Nullable;
5454
import javax.annotation.concurrent.Immutable;
55-
import org.jetbrains.annotations.NotNull;
5655

5756
/**
5857
* Represents a value to be consumed by the Cloud Spanner API. A value can be {@code NULL} or
@@ -1862,8 +1861,9 @@ com.google.protobuf.Value valueToProto() {
18621861
return com.google.protobuf.Value.newBuilder().setStringValue(value.toISO8601()).build();
18631862
}
18641863

1864+
@Nonnull
18651865
@Override
1866-
public @NotNull String getAsString() {
1866+
public String getAsString() {
18671867
return isNull() ? NULL_STRING : value.toISO8601();
18681868
}
18691869
}
@@ -2888,7 +2888,7 @@ void appendElement(StringBuilder b, Interval element) {
28882888
}
28892889

28902890
@Override
2891-
String elementToString(@NotNull Interval element) {
2891+
String elementToString(@Nonnull Interval element) {
28922892
return element.toISO8601();
28932893
}
28942894
}

google-cloud-spanner/src/test/java/com/google/cloud/spanner/IntervalTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616

1717
package com.google.cloud.spanner;
1818

19-
import static org.junit.Assert.*;
19+
import static org.junit.Assert.assertEquals;
20+
import static org.junit.Assert.assertNotEquals;
21+
import static org.junit.Assert.assertThrows;
2022

2123
import java.math.BigInteger;
2224
import org.junit.Test;

0 commit comments

Comments
 (0)