Skip to content

Commit f65c565

Browse files
committed
chore: enhance java code performance using singleton list
Signed-off-by: Otavio Santana <[email protected]>
1 parent 927beef commit f65c565

File tree

1 file changed

+1
-1
lines changed
  • bean-validation/src/main/java/org/jnosql/demo/se

1 file changed

+1
-1
lines changed

bean-validation/src/main/java/org/jnosql/demo/se/App1.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static void main(String[] args) {
5353
.withName("Michael Schumacher").build();
5454

5555
Driver rubens = Driver.builder().withAge(25)
56-
.withCars(Arrays.asList(mustang))
56+
.withCars(Collections.singletonList(mustang))
5757
.withEmail("[email protected]")
5858
.withLicense(true)
5959
.withName("Rubens Barrichello").build();

0 commit comments

Comments
 (0)