ruzeynalov commented on code in PR #4342:
URL: https://github.com/apache/fineract/pull/4342#discussion_r1961725453
##########
fineract-e2e-tests-core/src/test/java/org/apache/fineract/test/helper/Utils.java:
##########
@@ -48,4 +49,14 @@ public static String randomNameGenerator(final String
prefix, final int lenOfRan
public static LocalDate now() {
return LocalDate.now(Clock.systemUTC());
}
+
Review Comment:
By the way there is feature in Java 17+ that could be used instead of method
public record DoubleFormatter(double value) {
public String format() {
return String.format(value % 1.0 == 0 ? "%.1f" : "%.2f", value);
}
}
Then use i like below
String formatted = new DoubleFormatter(5.00).format();
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]