Skip to content

Commit 5c3206a

Browse files
committed
Fix warnings with latest PMD version
1 parent 81952db commit 5c3206a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugin/src/test/java/io/jenkins/plugins/forensics/git/blame/GitBlamerTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import java.io.File;
2121
import java.io.IOException;
22+
import java.nio.charset.StandardCharsets;
2223

2324
import org.jenkinsci.plugins.gitclient.GitClient;
2425
import hudson.FilePath;
@@ -320,7 +321,7 @@ private byte[] getRawCommit(final int commitTime) {
320321
Commit message""".formatted(
321322
commitTime,
322323
commitTime)
323-
.getBytes();
324+
.getBytes(StandardCharsets.UTF_8);
324325
}
325326

326327
private BlameResult createResult(final int size) {

0 commit comments

Comments
 (0)