Skip to content

Commit

Permalink
style: Introduced constant for number format default
Browse files Browse the repository at this point in the history
  • Loading branch information
jruaux committed Feb 7, 2025
1 parent bb5a23b commit 76b6561
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
public class EvaluationContextArgs {

public static final String DEFAULT_DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSSZ";
public static final String DEFAULT_NUMBER_FORMAT = "#,###.##";
public static final String VAR_DATE = "date";
public static final String VAR_NUMBER = "number";
public static final String VAR_FAKER = "faker";
Expand All @@ -31,7 +32,7 @@ public class EvaluationContextArgs {
private String dateFormat = DEFAULT_DATE_FORMAT;

@Option(names = "--number-format", description = "Number format (default: ${DEFAULT-VALUE}). For details see https://www.baeldung.com/java-decimalformat", paramLabel = "<fmt>")
private String numberFormat = "#,###.##";
private String numberFormat = DEFAULT_NUMBER_FORMAT;

private Map<String, Object> vars = new LinkedHashMap<>();

Expand Down

0 comments on commit 76b6561

Please sign in to comment.