mirror of
https://github.com/MaintainTeam/Hypatia.git
synced 2025-03-01 05:48:23 +03:00
Tweak
Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
parent
1c29038125
commit
47f16839df
1 changed files with 5 additions and 5 deletions
|
@ -55,7 +55,7 @@ public class Main {
|
||||||
if (databaseLocation.getName().contains(".hdb")) {//.hdb format: md5, size, name
|
if (databaseLocation.getName().contains(".hdb")) {//.hdb format: md5, size, name
|
||||||
while ((line = reader.readLine()) != null) {
|
while ((line = reader.readLine()) != null) {
|
||||||
if (line.length() > 0) {
|
if (line.length() > 0) {
|
||||||
String[] lineS = line.split(":");
|
String[] lineS = line.trim().split(":");
|
||||||
if (lineS[0].length() > 0) {
|
if (lineS[0].length() > 0) {
|
||||||
if (signaturesMD5.put(lineS[0])) {
|
if (signaturesMD5.put(lineS[0])) {
|
||||||
amtSignaturesMD5++;
|
amtSignaturesMD5++;
|
||||||
|
@ -67,7 +67,7 @@ public class Main {
|
||||||
} else if (databaseLocation.getName().contains(".hsb")) {//.hsb format: sha256, size, name
|
} else if (databaseLocation.getName().contains(".hsb")) {//.hsb format: sha256, size, name
|
||||||
while ((line = reader.readLine()) != null) {
|
while ((line = reader.readLine()) != null) {
|
||||||
if (line.length() > 0) {
|
if (line.length() > 0) {
|
||||||
String[] lineS = line.split(":");
|
String[] lineS = line.trim().split(":");
|
||||||
if (lineS[0].length() == 32) {
|
if (lineS[0].length() == 32) {
|
||||||
if (signaturesSHA1.put(lineS[0])) {
|
if (signaturesSHA1.put(lineS[0])) {
|
||||||
amtSignaturesSHA1++;
|
amtSignaturesSHA1++;
|
||||||
|
@ -84,7 +84,7 @@ public class Main {
|
||||||
} else if (databaseLocation.getName().contains(".md5")) {//one signature per line
|
} else if (databaseLocation.getName().contains(".md5")) {//one signature per line
|
||||||
while ((line = reader.readLine()) != null) {
|
while ((line = reader.readLine()) != null) {
|
||||||
if (line.length() > 0) {
|
if (line.length() > 0) {
|
||||||
if (signaturesMD5.put(line)) {
|
if (signaturesMD5.put(line.trim())) {
|
||||||
amtSignaturesMD5++;
|
amtSignaturesMD5++;
|
||||||
}
|
}
|
||||||
amtSignaturesRead++;
|
amtSignaturesRead++;
|
||||||
|
@ -93,7 +93,7 @@ public class Main {
|
||||||
} else if (databaseLocation.getName().contains(".sha1")) {//one signature per line
|
} else if (databaseLocation.getName().contains(".sha1")) {//one signature per line
|
||||||
while ((line = reader.readLine()) != null) {
|
while ((line = reader.readLine()) != null) {
|
||||||
if (line.length() > 0) {
|
if (line.length() > 0) {
|
||||||
if (signaturesSHA1.put(line)) {
|
if (signaturesSHA1.put(line.trim())) {
|
||||||
amtSignaturesSHA1++;
|
amtSignaturesSHA1++;
|
||||||
}
|
}
|
||||||
amtSignaturesRead++;
|
amtSignaturesRead++;
|
||||||
|
@ -102,7 +102,7 @@ public class Main {
|
||||||
} else if (databaseLocation.getName().contains(".sha256")) {//one signature per line
|
} else if (databaseLocation.getName().contains(".sha256")) {//one signature per line
|
||||||
while ((line = reader.readLine()) != null) {
|
while ((line = reader.readLine()) != null) {
|
||||||
if (line.length() > 0) {
|
if (line.length() > 0) {
|
||||||
if (signaturesSHA256.put(line)) {
|
if (signaturesSHA256.put(line.trim())) {
|
||||||
amtSignaturesSHA256++;
|
amtSignaturesSHA256++;
|
||||||
}
|
}
|
||||||
amtSignaturesRead++;
|
amtSignaturesRead++;
|
||||||
|
|
Loading…
Add table
Reference in a new issue