Skip to content

Commit

Permalink
Use simpler collection creation idioms in code example
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Jan 26, 2024
1 parent 52292c7 commit 4f4593e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/main/asciidoc/getting-started-testing.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -640,14 +640,14 @@ public class Profiles {
public static class SingleTag implements QuarkusTestProfile {
@Override
public Set<String> tags() {
return Collections.singleton("test1");
return List.of("test1");
}
}
public static class MultipleTags implements QuarkusTestProfile {
@Override
public Set<String> tags() {
return new HashSet<>(Arrays.asList("test1", "test2"));
return Set.of("test1", "test2");
}
}
}
Expand Down

0 comments on commit 4f4593e

Please sign in to comment.