Merge branch 'main' into 4.0.x
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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