Skip to content

Commit 9da666b

Browse files
committed
Add more nullability annotations to core/spring-boot
See gh-46587
1 parent 2449769 commit 9da666b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/spring-boot/src/main/java/org/springframework/boot/ssl/pem/PemCertificateParser.java

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

3030
import org.jspecify.annotations.Nullable;
3131

32+
import org.springframework.lang.Contract;
3233
import org.springframework.util.Assert;
3334
import org.springframework.util.CollectionUtils;
3435

@@ -56,6 +57,7 @@ private PemCertificateParser() {
5657
* @param text the text to parse
5758
* @return the parsed certificates
5859
*/
60+
@Contract("!null -> !null")
5961
static @Nullable List<X509Certificate> parse(@Nullable String text) {
6062
if (text == null) {
6163
return null;

0 commit comments

Comments
 (0)