Remove unnecessary initializers

These fields are initialized to their zero values (0, null, false) so doing
the same over in the constructor is unnecessary.
This commit is contained in:
Daniel Martí 2015-10-23 12:41:05 +02:00
parent 56d9ccd737
commit da6fd323fd
2 changed files with 1 additions and 12 deletions

View File

@ -58,9 +58,6 @@ public class RepoXMLHandler extends DefaultHandler {
public RepoXMLHandler(Repo repo) {
this.repo = repo;
signingCertFromIndexXml = null;
name = null;
description = null;
}
public List<App> getApps() {

View File

@ -44,15 +44,7 @@ public class Apk extends ValueObject implements Comparable<Apk> {
public String repoAddress;
public Utils.CommaSeparatedList incompatibleReasons;
public Apk() {
size = 0;
added = null;
repo = 0;
hash = null;
hashType = null;
permissions = null;
compatible = false;
}
public Apk() { }
public Apk(Cursor cursor) {