Skip to content

Commit 29d72e8

Browse files
committed
Use JSpecify
Closes gh-1153
1 parent 813f4f3 commit 29d72e8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

core/src/main/java/org/springframework/ldap/core/NameAwareAttributes.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
import javax.naming.directory.Attribute;
2626
import javax.naming.directory.Attributes;
2727

28-
import org.springframework.lang.NonNull;
28+
import org.jspecify.annotations.NonNull;
29+
2930
import org.springframework.util.Assert;
3031

3132
/**

core/src/main/java/org/springframework/ldap/core/support/ObservationContextSource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
import io.micrometer.observation.Observation;
4646
import io.micrometer.observation.ObservationConvention;
4747
import io.micrometer.observation.ObservationRegistry;
48+
import org.jspecify.annotations.NonNull;
4849

49-
import org.springframework.lang.NonNull;
5050
import org.springframework.ldap.NamingException;
5151
import org.springframework.ldap.core.ContextSource;
5252
import org.springframework.ldap.core.DirContextOperations;
@@ -190,7 +190,7 @@ public KeyValues getLowCardinalityKeyValues(DirContextOperationObservationContex
190190
}
191191

192192
@Override
193-
public boolean supportsContext(@NonNull Observation.Context context) {
193+
public boolean supportsContext(Observation.Context context) {
194194
return context instanceof DirContextOperationObservationContext;
195195
}
196196

0 commit comments

Comments
 (0)