mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
fixed typo in checksumhelper
This commit is contained in:
parent
f2a70193e3
commit
fa36c9080c
2 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
package com.magefree.update;
|
||||
|
||||
import com.magefree.update.helpers.ChechsumHelper;
|
||||
import com.magefree.update.helpers.ChecksumHelper;
|
||||
import com.magefree.update.helpers.FileHelper;
|
||||
|
||||
import java.io.File;
|
||||
|
@ -67,7 +67,7 @@ public class Updater {
|
|||
public HashMap<String, String> readLocalData() throws Exception {
|
||||
HashMap<String, String> result = new HashMap<>();
|
||||
for (File f : findFiles()) {
|
||||
result.put(f.getPath().replaceAll("\\\\", "/"), ChechsumHelper.getSHA1Checksum(f.getPath()));
|
||||
result.put(f.getPath().replaceAll("\\\\", "/"), ChecksumHelper.getSHA1Checksum(f.getPath()));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.security.MessageDigest;
|
|||
/**
|
||||
* @author Loki
|
||||
*/
|
||||
public final class ChechsumHelper {
|
||||
public final class ChecksumHelper {
|
||||
|
||||
public static byte[] createChecksum(String filename) throws Exception {
|
||||
InputStream fis = null;
|
Loading…
Reference in a new issue