refactor: correct spelling mistake of aapt

This commit is contained in:
Connor Tumbleson 2021-03-28 10:54:31 -04:00
parent 6a7f606410
commit 8a23d0dbc1
No known key found for this signature in database
GPG Key ID: C3CC0A201EC7DA75
2 changed files with 9 additions and 9 deletions

View File

@ -1017,9 +1017,9 @@ final public class AndrolibResources {
private File getAaptBinaryFile() throws AndrolibException {
try {
if (getAaptVersion() == 2) {
return AaptManager.getAppt2();
return AaptManager.getAapt2();
}
return AaptManager.getAppt1();
return AaptManager.getAapt1();
} catch (BrutException ex) {
throw new AndrolibException(ex);
}

View File

@ -23,15 +23,15 @@ import java.util.List;
public class AaptManager {
public static File getAppt2() throws BrutException {
return getAppt(2);
public static File getAapt2() throws BrutException {
return getAapt(2);
}
public static File getAppt1() throws BrutException {
return getAppt(1);
public static File getAapt1() throws BrutException {
return getAapt(1);
}
private static File getAppt(Integer version) throws BrutException {
private static File getAapt(Integer version) throws BrutException {
File aaptBinary;
String aaptVersion = getAaptBinaryName(version);
@ -78,7 +78,7 @@ public class AaptManager {
}
public static int getAaptVersion(String aaptLocation) throws BrutException {
return getApptVersion(new File(aaptLocation));
return getAaptVersion(new File(aaptLocation));
}
public static String getAaptBinaryName(Integer version) {
@ -97,7 +97,7 @@ public class AaptManager {
throw new BrutException("aapt version could not be identified: " + version);
}
public static int getApptVersion(File aapt) throws BrutException {
public static int getAaptVersion(File aapt) throws BrutException {
if (!aapt.isFile()) {
throw new BrutException("Could not identify aapt binary as executable.");
}