Skip to content

Commit 9d9b2c5

Browse files
author
Gonzalo Diaz
committed
[BUGFIX] sonarcloud: Looks like there is a confusion with the use of java.text.MessageFormat, parameters will be simply ignored here
Format strings should be used correctly java:S3457
1 parent 0b33390 commit 9d9b2c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

algorithm-exercises-java/src/test/java/ae/projecteuler/Problem0023Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void problem0023smallCase1(
2222

2323
Integer solutionFound = Problem0023.problem0023(inputUnderLimit, inputSuperLimit);
2424

25-
String log = String.format("Problem 0023 {0} answer must be: {1}", testCase, answer);
25+
String log = String.format("Problem 0023 %s answer must be: %d", testCase, answer);
2626
assertEquals(answer, solutionFound, log);
2727
}
2828

0 commit comments

Comments
 (0)