fixed typo in checksumhelper

This commit is contained in:
Marc Zwart 2018-03-01 17:10:13 +01:00
parent f2a70193e3
commit fa36c9080c
2 changed files with 3 additions and 3 deletions

View file

@ -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;
} }

View file

@ -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;