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"));
|
return (environment) -> getBooksOnSale(environment.getArgument("minPages"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("deprecation")
|
|
||||||
@org.springframework.lang.Nullable
|
|
||||||
public static Book getBookById(String id) {
|
public static Book getBookById(String id) {
|
||||||
return books.stream().filter((book) -> book.getId().equals(id)).findFirst().orElse(null);
|
return books.stream().filter((book) -> book.getId().equals(id)).findFirst().orElse(null);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -169,8 +169,6 @@ class GraphQlWebFluxSecurityAutoConfigurationTests {
|
|||||||
static class BookService {
|
static class BookService {
|
||||||
|
|
||||||
@PreAuthorize("hasRole('USER')")
|
@PreAuthorize("hasRole('USER')")
|
||||||
@org.springframework.lang.Nullable
|
|
||||||
@SuppressWarnings("deprecation")
|
|
||||||
Mono<Book> getBookdById(String id) {
|
Mono<Book> getBookdById(String id) {
|
||||||
return Mono.justOrEmpty(GraphQlTestDataFetchers.getBookById(id));
|
return Mono.justOrEmpty(GraphQlTestDataFetchers.getBookById(id));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -158,8 +158,6 @@ class GraphQlWebMvcSecurityAutoConfigurationTests {
|
|||||||
static class BookService {
|
static class BookService {
|
||||||
|
|
||||||
@PreAuthorize("hasRole('USER')")
|
@PreAuthorize("hasRole('USER')")
|
||||||
@org.springframework.lang.Nullable
|
|
||||||
@SuppressWarnings("deprecation")
|
|
||||||
Book getBookdById(String id) {
|
Book getBookdById(String id) {
|
||||||
return GraphQlTestDataFetchers.getBookById(id);
|
return GraphQlTestDataFetchers.getBookById(id);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user