Skip to content

Commit 7b36f9f

Browse files
committed
use List.of()
1 parent e71942e commit 7b36f9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/includes/fundamentals/code-snippets/builders/AggregateSearchBuilderExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ private static void runAtlasSearchWithSearchHelperMethods(MongoCollection<Docume
6565
pipeline.add(Aggregates.search(
6666
SearchOperator.compound()
6767
.filter(
68-
Arrays.asList(
69-
SearchOperator.in(fieldPath("genres"), Arrays.asList("Comedy")),
68+
List.of(
69+
SearchOperator.in(fieldPath("genres"), "Comedy"),
7070
SearchOperator.phrase(fieldPath("fullplot"), "new york"),
7171
SearchOperator.numberRange(fieldPath("year")).gtLt(1950, 2000),
7272
SearchOperator.wildcard(fieldPath("title"), "Love *")

0 commit comments

Comments
 (0)