Skip to content

Commit 3dd227f

Browse files
committed
Merge branch '3.4.x'
Closes gh-45687
2 parents f7e43e1 + 88792c5 commit 3dd227f

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/graphql/GraphQlTestDataFetchers.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2022 the original author or authors.
2+
* Copyright 2012-2025 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.
@@ -22,8 +22,6 @@
2222
import graphql.schema.DataFetcher;
2323
import reactor.core.publisher.Flux;
2424

25-
import org.springframework.lang.Nullable;
26-
2725
/**
2826
* Test utility class holding {@link DataFetcher} implementations.
2927
*
@@ -48,7 +46,6 @@ public static DataFetcher<Flux<Book>> getBooksOnSaleDataFetcher() {
4846
return (environment) -> getBooksOnSale(environment.getArgument("minPages"));
4947
}
5048

51-
@Nullable
5249
public static Book getBookById(String id) {
5350
return books.stream().filter((book) -> book.getId().equals(id)).findFirst().orElse(null);
5451
}

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/graphql/security/GraphQlWebFluxSecurityAutoConfigurationTests.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
import org.springframework.graphql.execution.ReactiveSecurityDataFetcherExceptionResolver;
4242
import org.springframework.graphql.execution.RuntimeWiringConfigurer;
4343
import org.springframework.http.MediaType;
44-
import org.springframework.lang.Nullable;
4544
import org.springframework.security.access.prepost.PreAuthorize;
4645
import org.springframework.security.config.annotation.method.configuration.EnableReactiveMethodSecurity;
4746
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity;
@@ -168,7 +167,6 @@ BookService bookService() {
168167
static class BookService {
169168

170169
@PreAuthorize("hasRole('USER')")
171-
@Nullable
172170
Mono<Book> getBookdById(String id) {
173171
return Mono.justOrEmpty(GraphQlTestDataFetchers.getBookById(id));
174172
}

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/graphql/security/GraphQlWebMvcSecurityAutoConfigurationTests.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
import org.springframework.graphql.execution.RuntimeWiringConfigurer;
3939
import org.springframework.graphql.execution.SecurityDataFetcherExceptionResolver;
4040
import org.springframework.http.MediaType;
41-
import org.springframework.lang.Nullable;
4241
import org.springframework.security.access.prepost.PreAuthorize;
4342
import org.springframework.security.config.annotation.method.configuration.EnableMethodSecurity;
4443
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
@@ -157,7 +156,6 @@ BookService bookService() {
157156
static class BookService {
158157

159158
@PreAuthorize("hasRole('USER')")
160-
@Nullable
161159
Book getBookdById(String id) {
162160
return GraphQlTestDataFetchers.getBookById(id);
163161
}

0 commit comments

Comments
 (0)