Skip to content

Commit

Permalink
Don't use default locale for String.format call
Browse files Browse the repository at this point in the history
  • Loading branch information
bmiddaugh committed May 28, 2024
1 parent 9b361e5 commit 9a25dd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/com/jcraft/jsch/OpenSSHConfigTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,6 @@ private void assertUserEquals(OpenSSHConfig openSSHConfig, String host, String e
assertNotNull(config);
String actual = config.getUser();
assertEquals(expected, actual,
String.format("Expected user for host %s to be %s, but was %s", host, expected, actual));
String.format(Locale.ROOT, "Expected user for host %s to be %s, but was %s", host, expected, actual));
}
}

0 comments on commit 9a25dd5

Please sign in to comment.