Skip to content

Commit 26579e1

Browse files
committed
Remove accidental org.jetbrains:annotations usage.
See spring-projects/spring-data-build#2670
1 parent fd4e450 commit 26579e1

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

src/main/java/org/springframework/data/util/ReflectionUtils.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import java.util.stream.Collectors;
2828
import java.util.stream.Stream;
2929

30-
import org.jetbrains.annotations.NotNull;
3130
import org.jspecify.annotations.Nullable;
3231

3332
import org.springframework.core.KotlinDetector;
@@ -287,8 +286,7 @@ public static void setField(Field field, Object target, @Nullable Object value)
287286
Assert.notNull(type, "Target type must not be null");
288287
Assert.notNull(constructorArguments, "Constructor arguments must not be null");
289288

290-
for (@NotNull
291-
Constructor<?> declaredConstructor : type.getDeclaredConstructors()) {
289+
for (Constructor<?> declaredConstructor : type.getDeclaredConstructors()) {
292290
if (argumentsMatch(declaredConstructor.getParameterTypes(), constructorArguments)) {
293291
return (Constructor<T>) declaredConstructor;
294292
}

src/test/java/org/springframework/data/expression/ValueEvaluationUnitTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import java.util.Map;
2121

22-
import org.jetbrains.annotations.Nullable;
22+
import org.jspecify.annotations.Nullable;
2323
import org.junit.jupiter.api.BeforeEach;
2424
import org.junit.jupiter.api.Test;
2525

@@ -49,7 +49,7 @@ void setUp() {
4949
StandardEnvironment environment = new StandardEnvironment();
5050
environment.getPropertySources().addFirst(propertySource);
5151

52-
record MyRecord(String foo, @org.jspecify.annotations.Nullable String bar) {
52+
record MyRecord(String foo, @Nullable String bar) {
5353

5454
}
5555

src/test/java/org/springframework/data/repository/core/support/RepositoryMethodInvokerUnitTests.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737

3838
import org.assertj.core.api.Assertions;
3939
import org.assertj.core.data.Percentage;
40-
import org.jetbrains.annotations.NotNull;
4140
import org.jspecify.annotations.Nullable;
4241
import org.junit.jupiter.api.BeforeEach;
4342
import org.junit.jupiter.api.Test;
@@ -356,7 +355,6 @@ RepositoryMethodInvocation last() {
356355
return CollectionUtils.lastElement(invocations);
357356
}
358357

359-
@NotNull
360358
@Override
361359
public Iterator<RepositoryMethodInvocation> iterator() {
362360
return invocations.iterator();

0 commit comments

Comments
 (0)