Skip to content

Commit 8d23ec4

Browse files
committed
Merge branch '6.1.x'
2 parents 14bc0d6 + aa0fb97 commit 8d23ec4

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

spring-core-test/src/main/java/org/springframework/core/test/io/support/MockSpringFactoriesLoader.java

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ protected MockSpringFactoriesLoader(@Nullable ClassLoader classLoader,
6767

6868

6969
@Override
70+
@Nullable
7071
@SuppressWarnings("unchecked")
7172
protected <T> T instantiateFactory(String implementationName, Class<T> type,
7273
@Nullable ArgumentResolver argumentResolver, FailureHandler failureHandler) {

spring-core/src/main/java/org/springframework/aot/generate/ValueCodeGeneratorDelegates.java

+2
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ protected CollectionDelegate(Class<?> collectionType, CodeBlock emptyResult) {
9494

9595
@Override
9696
@SuppressWarnings("unchecked")
97+
@Nullable
9798
public CodeBlock generateCode(ValueCodeGenerator valueCodeGenerator, Object value) {
9899
if (this.collectionType.isInstance(value)) {
99100
T collection = (T) value;
@@ -135,6 +136,7 @@ public static class MapDelegate implements Delegate {
135136
private static final CodeBlock EMPTY_RESULT = CodeBlock.of("$T.emptyMap()", Collections.class);
136137

137138
@Override
139+
@Nullable
138140
public CodeBlock generateCode(ValueCodeGenerator valueCodeGenerator, Object value) {
139141
if (value instanceof Map<?, ?> map) {
140142
if (map.isEmpty()) {

spring-core/src/main/java/org/springframework/aot/hint/support/SpringPropertiesRuntimeHints.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import org.springframework.aot.hint.RuntimeHints;
2020
import org.springframework.aot.hint.RuntimeHintsRegistrar;
21+
import org.springframework.lang.Nullable;
2122

2223
/**
2324
* {@link RuntimeHintsRegistrar} to register hints for {@link org.springframework.core.SpringProperties}.
@@ -28,7 +29,7 @@
2829
class SpringPropertiesRuntimeHints implements RuntimeHintsRegistrar {
2930

3031
@Override
31-
public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
32+
public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader) {
3233
hints.resources().registerPattern("spring.properties");
3334
}
3435
}

spring-core/src/main/java/org/springframework/util/UnmodifiableMultiValueMap.java

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ public List<V> get(Object key) {
9696
}
9797

9898
@Override
99+
@Nullable
99100
public V getFirst(K key) {
100101
return this.delegate.getFirst(key);
101102
}

0 commit comments

Comments
 (0)