Skip to content

Commit

Permalink
chore: enhance java code performance using singleton list
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <[email protected]>
  • Loading branch information
otaviojava committed Jan 1, 2025
1 parent 927beef commit f65c565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bean-validation/src/main/java/org/jnosql/demo/se/App1.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static void main(String[] args) {
.withName("Michael Schumacher").build();

Driver rubens = Driver.builder().withAge(25)
.withCars(Arrays.asList(mustang))
.withCars(Collections.singletonList(mustang))
.withEmail("[email protected]")
.withLicense(true)
.withName("Rubens Barrichello").build();
Expand Down

0 comments on commit f65c565

Please sign in to comment.