Skip to content

Commit

Permalink
chore: update code structure define as final when it does make sense
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 6f1f248 commit 0351fab
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class DriverTest {

private static Validator validator;

private CurrencyUnit usd = Monetary.getCurrency(Locale.US);
private final CurrencyUnit usd = Monetary.getCurrency(Locale.US);

private Car ferrari;

Expand Down
2 changes: 1 addition & 1 deletion cassandra/src/main/java/org/jnosql/demo/se/Director.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static class DirectorBuilder {

private String name;

private Set<String> movies = new HashSet<>();
private final Set<String> movies = new HashSet<>();

public DirectorBuilder withName(String name) {
this.name = name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class DeveloperBuilder {

private Address address;

private List<String> languages = new ArrayList<>();
private final List<String> languages = new ArrayList<>();

public DeveloperBuilder withId(long id) {
this.id = id;
Expand Down
2 changes: 1 addition & 1 deletion scylla/src/main/java/org/jnosql/demo/se/Director.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static class DirectorBuilder {

private String name;

private Set<String> movies = new HashSet<>();
private final Set<String> movies = new HashSet<>();

public DirectorBuilder withName(String name) {
this.name = name;
Expand Down

0 comments on commit 0351fab

Please sign in to comment.