mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-25 02:49:03 +00:00
Merge branch 'main' into 4.0.x
This commit is contained in:
-2
@@ -46,8 +46,6 @@ public final class GraphQlTestDataFetchers {
|
||||
return (environment) -> getBooksOnSale(environment.getArgument("minPages"));
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@org.springframework.lang.Nullable
|
||||
public static Book getBookById(String id) {
|
||||
return books.stream().filter((book) -> book.getId().equals(id)).findFirst().orElse(null);
|
||||
}
|
||||
|
||||
-2
@@ -169,8 +169,6 @@ class GraphQlWebFluxSecurityAutoConfigurationTests {
|
||||
static class BookService {
|
||||
|
||||
@PreAuthorize("hasRole('USER')")
|
||||
@org.springframework.lang.Nullable
|
||||
@SuppressWarnings("deprecation")
|
||||
Mono<Book> getBookdById(String id) {
|
||||
return Mono.justOrEmpty(GraphQlTestDataFetchers.getBookById(id));
|
||||
}
|
||||
|
||||
-2
@@ -158,8 +158,6 @@ class GraphQlWebMvcSecurityAutoConfigurationTests {
|
||||
static class BookService {
|
||||
|
||||
@PreAuthorize("hasRole('USER')")
|
||||
@org.springframework.lang.Nullable
|
||||
@SuppressWarnings("deprecation")
|
||||
Book getBookdById(String id) {
|
||||
return GraphQlTestDataFetchers.getBookById(id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user