Fixed some naming

This commit is contained in:
Daniel Haß
2014-03-04 13:58:26 +01:00
parent a12b67c538
commit 106027a7cd

View File

@@ -38,9 +38,9 @@ public class ImportKeysListLoader extends AsyncTaskLoader<AsyncTaskResultWrapper
} }
public static class NonPGPPart extends Exception { public static class NonPgpPart extends Exception {
private int count; private int count;
public NonPGPPart(int count) { public NonPgpPart(int count) {
this.count = count; this.count = count;
} }
public int getCount() { public int getCount() {
@@ -108,7 +108,7 @@ public class ImportKeysListLoader extends AsyncTaskLoader<AsyncTaskResultWrapper
private void generateListOfKeyrings(InputData inputData) { private void generateListOfKeyrings(InputData inputData) {
boolean isEmpty = true; boolean isEmpty = true;
int nonPGPcounter = 0; int nonPgpCounter = 0;
PositionAwareInputStream progressIn = new PositionAwareInputStream( PositionAwareInputStream progressIn = new PositionAwareInputStream(
inputData.getInputStream()); inputData.getInputStream());
@@ -135,14 +135,14 @@ public class ImportKeysListLoader extends AsyncTaskLoader<AsyncTaskResultWrapper
addToData(newKeyring); addToData(newKeyring);
} else { } else {
Log.e(Constants.TAG, "Object not recognized as PGPKeyRing!"); Log.e(Constants.TAG, "Object not recognized as PGPKeyRing!");
nonPGPcounter++; nonPgpCounter++;
} }
} }
} }
} catch (Exception e) { } catch (Exception e) {
Log.e(Constants.TAG, "Exception on parsing key file!", e); Log.e(Constants.TAG, "Exception on parsing key file!", e);
entryListWrapper = new AsyncTaskResultWrapper<ArrayList<ImportKeysListEntry>>(data, e); entryListWrapper = new AsyncTaskResultWrapper<ArrayList<ImportKeysListEntry>>(data, e);
nonPGPcounter = 0; nonPgpCounter = 0;
} }
if(isEmpty) { if(isEmpty) {
@@ -151,9 +151,9 @@ public class ImportKeysListLoader extends AsyncTaskLoader<AsyncTaskResultWrapper
(data, new FileHasNoContent()); (data, new FileHasNoContent());
} }
if(nonPGPcounter > 0) { if(nonPgpCounter > 0) {
entryListWrapper = new AsyncTaskResultWrapper<ArrayList<ImportKeysListEntry>> entryListWrapper = new AsyncTaskResultWrapper<ArrayList<ImportKeysListEntry>>
(data, new NonPGPPart(nonPGPcounter)); (data, new NonPgpPart(nonPgpCounter));
} }
} }