mirror of
https://github.com/correl/mage.git
synced 2025-03-17 01:06:26 -09: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;
|
package com.magefree.update;
|
||||||
|
|
||||||
import com.magefree.update.helpers.ChechsumHelper;
|
import com.magefree.update.helpers.ChecksumHelper;
|
||||||
import com.magefree.update.helpers.FileHelper;
|
import com.magefree.update.helpers.FileHelper;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
@ -67,7 +67,7 @@ public class Updater {
|
||||||
public HashMap<String, String> readLocalData() throws Exception {
|
public HashMap<String, String> readLocalData() throws Exception {
|
||||||
HashMap<String, String> result = new HashMap<>();
|
HashMap<String, String> result = new HashMap<>();
|
||||||
for (File f : findFiles()) {
|
for (File f : findFiles()) {
|
||||||
result.put(f.getPath().replaceAll("\\\\", "/"), ChechsumHelper.getSHA1Checksum(f.getPath()));
|
result.put(f.getPath().replaceAll("\\\\", "/"), ChecksumHelper.getSHA1Checksum(f.getPath()));
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ import java.security.MessageDigest;
|
||||||
/**
|
/**
|
||||||
* @author Loki
|
* @author Loki
|
||||||
*/
|
*/
|
||||||
public final class ChechsumHelper {
|
public final class ChecksumHelper {
|
||||||
|
|
||||||
public static byte[] createChecksum(String filename) throws Exception {
|
public static byte[] createChecksum(String filename) throws Exception {
|
||||||
InputStream fis = null;
|
InputStream fis = null;
|
Loading…
Add table
Reference in a new issue