Skip to content

Commit 2e777c4

Browse files
committed
feat: enhance static factory method
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
1 parent c8c30ec commit 2e777c4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/java/org/jnosql/demoee/Camera.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ public record Camera(
1818
) {
1919

2020
public static Camera of(Faker faker) {
21-
String brand = faker.camera().brand();
22-
String model = faker.camera().model();
23-
String brandWithModel = faker.camera().brandWithModel();
21+
var camera = faker.camera();
22+
String brand = camera.brand();
23+
String model = camera.model();
24+
String brandWithModel = camera.brandWithModel();
2425
return new Camera(UUID.randomUUID().toString(), brand, model, brandWithModel);
2526
}
2627

0 commit comments

Comments
 (0)