Skip to content

Commit 89d5630

Browse files
committed
Merge branch '6.1.x'
# Conflicts: # spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java
2 parents 10e8039 + eb8b7c4 commit 89d5630

File tree

7 files changed

+14
-21
lines changed

7 files changed

+14
-21
lines changed

spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import org.springframework.core.MethodParameter;
3131
import org.springframework.core.ResolvableType;
3232
import org.springframework.core.annotation.AnnotatedElementUtils;
33-
import org.springframework.lang.NonNull;
3433
import org.springframework.lang.Nullable;
3534
import org.springframework.util.Assert;
3635
import org.springframework.util.ClassUtils;
@@ -751,7 +750,7 @@ private static final class AnnotatedElementAdapter implements AnnotatedElement,
751750

752751
private final Annotation[] annotations;
753752

754-
private AnnotatedElementAdapter(@NonNull Annotation[] annotations) {
753+
private AnnotatedElementAdapter(Annotation[] annotations) {
755754
this.annotations = annotations;
756755
}
757756

spring-core/src/main/java/org/springframework/core/metrics/jfr/FlightRecorderStartupStep.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,10 +21,10 @@
2121
import java.util.function.Supplier;
2222

2323
import org.springframework.core.metrics.StartupStep;
24-
import org.springframework.lang.NonNull;
2524

2625
/**
2726
* {@link StartupStep} implementation for the Java Flight Recorder.
27+
*
2828
* <p>This variant delegates to a {@link FlightRecorderStartupEvent JFR event extension}
2929
* to collect and record data in Java Flight Recorder.
3030
*
@@ -114,12 +114,12 @@ public void add(String key, Supplier<String> value) {
114114
add(key, value.get());
115115
}
116116

117-
@NonNull
118117
@Override
119118
public Iterator<Tag> iterator() {
120119
return new TagsIterator();
121120
}
122121

122+
123123
private class TagsIterator implements Iterator<Tag> {
124124

125125
private int idx = 0;

spring-test/src/main/java/org/springframework/mock/web/MockHttpServletRequest.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -63,7 +63,6 @@
6363

6464
import org.springframework.http.HttpHeaders;
6565
import org.springframework.http.MediaType;
66-
import org.springframework.lang.NonNull;
6766
import org.springframework.lang.Nullable;
6867
import org.springframework.util.Assert;
6968
import org.springframework.util.LinkedCaseInsensitiveMap;
@@ -1020,7 +1019,7 @@ public void setCookies(@Nullable Cookie... cookies) {
10201019
}
10211020
}
10221021

1023-
private static String encodeCookies(@NonNull Cookie... cookies) {
1022+
private static String encodeCookies(Cookie... cookies) {
10241023
return Arrays.stream(cookies)
10251024
.map(c -> c.getName() + '=' + (c.getValue() == null ? "" : c.getValue()))
10261025
.collect(Collectors.joining("; "));

spring-test/src/main/java/org/springframework/test/context/jdbc/SqlScriptsTestExecutionListener.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -35,7 +35,6 @@
3535
import org.springframework.core.io.DefaultResourceLoader;
3636
import org.springframework.core.io.Resource;
3737
import org.springframework.jdbc.datasource.init.ResourceDatabasePopulator;
38-
import org.springframework.lang.NonNull;
3938
import org.springframework.lang.Nullable;
4039
import org.springframework.test.context.TestContext;
4140
import org.springframework.test.context.TestContextAnnotationUtils;
@@ -363,7 +362,6 @@ else if (logger.isDebugEnabled()) {
363362
}
364363
}
365364

366-
@NonNull
367365
private ResourceDatabasePopulator createDatabasePopulator(MergedSqlConfig mergedSqlConfig) {
368366
ResourceDatabasePopulator populator = new ResourceDatabasePopulator();
369367
populator.setSqlScriptEncoding(mergedSqlConfig.getEncoding());

spring-web/src/main/java/org/springframework/http/DefaultHttpStatusCode.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -18,7 +18,6 @@
1818

1919
import java.io.Serializable;
2020

21-
import org.springframework.lang.NonNull;
2221
import org.springframework.lang.Nullable;
2322

2423
/**
@@ -80,8 +79,8 @@ private int hundreds() {
8079

8180

8281
@Override
83-
public int compareTo(@NonNull HttpStatusCode o) {
84-
return Integer.compare(this.value, o.value());
82+
public int compareTo(HttpStatusCode other) {
83+
return Integer.compare(this.value, other.value());
8584
}
8685

8786
@Override

spring-web/src/testFixtures/java/org/springframework/web/testfixture/servlet/MockHttpServletRequest.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -63,7 +63,6 @@
6363

6464
import org.springframework.http.HttpHeaders;
6565
import org.springframework.http.MediaType;
66-
import org.springframework.lang.NonNull;
6766
import org.springframework.lang.Nullable;
6867
import org.springframework.util.Assert;
6968
import org.springframework.util.LinkedCaseInsensitiveMap;
@@ -1020,7 +1019,7 @@ public void setCookies(@Nullable Cookie... cookies) {
10201019
}
10211020
}
10221021

1023-
private static String encodeCookies(@NonNull Cookie... cookies) {
1022+
private static String encodeCookies(Cookie... cookies) {
10241023
return Arrays.stream(cookies)
10251024
.map(c -> c.getName() + '=' + (c.getValue() == null ? "" : c.getValue()))
10261025
.collect(Collectors.joining("; "));

spring-webmvc/src/main/java/org/springframework/web/servlet/function/DefaultServerRequest.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
import org.springframework.http.converter.HttpMessageConverter;
6161
import org.springframework.http.server.RequestPath;
6262
import org.springframework.http.server.ServletServerHttpRequest;
63-
import org.springframework.lang.NonNull;
6463
import org.springframework.lang.Nullable;
6564
import org.springframework.util.Assert;
6665
import org.springframework.util.CollectionUtils;
@@ -522,7 +521,7 @@ public boolean contains(Object o) {
522521
}
523522

524523
@Override
525-
public boolean addAll(@NonNull Collection<? extends Entry<String, Object>> c) {
524+
public boolean addAll(Collection<? extends Entry<String, Object>> c) {
526525
throw new UnsupportedOperationException();
527526
}
528527

@@ -537,7 +536,7 @@ public boolean removeAll(Collection<?> c) {
537536
}
538537

539538
@Override
540-
public boolean retainAll(@NonNull Collection<?> c) {
539+
public boolean retainAll(Collection<?> c) {
541540
throw new UnsupportedOperationException();
542541
}
543542

0 commit comments

Comments
 (0)