File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/src/main/java/com/diffplug/spotless/rome Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ final class RomeExecutableDownloader {
47
47
/**
48
48
* The checksum algorithm to use for checking the integrity of downloaded files.
49
49
*/
50
- private static final String CHECKSUM_ALGORITHM = "MD5 " ;
50
+ private static final String CHECKSUM_ALGORITHM = "SHA256 " ;
51
51
52
52
/**
53
53
* The pattern for {@link String#format(String, Object...) String.format()} for
@@ -229,7 +229,7 @@ private boolean checkFileWithChecksum(Path filePath) {
229
229
*
230
230
* @param file File to process.
231
231
* @param algorithm The checksum algorithm to use.
232
- * @return The MD5 checksum of the given file.
232
+ * @return The checksum of the given file.
233
233
* @throws IOException When the file does not exist or could not be read.
234
234
*/
235
235
private String computeChecksum (Path file , String algorithm ) throws IOException {
@@ -276,7 +276,7 @@ private Path getChecksumPath(Path file) {
276
276
var parent = file .getParent ();
277
277
var base = parent != null ? parent : file ;
278
278
var fileName = file .getFileName ();
279
- var checksumName = fileName != null ? fileName .toString () + ".md5 " : "checksum.md5 " ;
279
+ var checksumName = fileName != null ? fileName .toString () + ".sha256 " : "checksum.sha256 " ;
280
280
return base .resolve (checksumName );
281
281
}
282
282
You can’t perform that action at this time.
0 commit comments