mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-21 01:07:34 +01:00
clean: get rid of useless throws
This commit is contained in:
parent
1472b50541
commit
83f9693633
@ -67,7 +67,7 @@ public class ApkDecoder {
|
||||
mResTable = null;
|
||||
}
|
||||
|
||||
public void setOutDir(File outDir) throws AndrolibException {
|
||||
public void setOutDir(File outDir) {
|
||||
mOutDir = outDir;
|
||||
}
|
||||
|
||||
@ -342,7 +342,7 @@ public class ApkDecoder {
|
||||
mAndrolib.writeMetaFile(mOutDir, meta);
|
||||
}
|
||||
|
||||
private void putUsesFramework(MetaInfo meta) throws AndrolibException {
|
||||
private void putUsesFramework(MetaInfo meta) {
|
||||
Set<ResPackage> pkgs = mResTable.listFramePackages();
|
||||
if (pkgs.isEmpty()) {
|
||||
return;
|
||||
@ -363,7 +363,7 @@ public class ApkDecoder {
|
||||
}
|
||||
}
|
||||
|
||||
private void putSdkInfo(MetaInfo meta) throws AndrolibException {
|
||||
private void putSdkInfo(MetaInfo meta) {
|
||||
Map<String, String> info = mResTable.getSdkInfo();
|
||||
if (info.size() > 0) {
|
||||
String refValue;
|
||||
@ -411,7 +411,7 @@ public class ApkDecoder {
|
||||
meta.packageInfo.forcedPackageId = String.valueOf(id);
|
||||
}
|
||||
|
||||
private void putVersionInfo(MetaInfo meta) throws AndrolibException {
|
||||
private void putVersionInfo(MetaInfo meta) {
|
||||
VersionInfo info = mResTable.getVersionInfo();
|
||||
String refValue = ResXmlPatcher.pullValueFromStrings(mOutDir, info.versionName);
|
||||
if (refValue != null) {
|
||||
@ -420,11 +420,11 @@ public class ApkDecoder {
|
||||
meta.versionInfo = info;
|
||||
}
|
||||
|
||||
private void putSharedLibraryInfo(MetaInfo meta) throws AndrolibException {
|
||||
private void putSharedLibraryInfo(MetaInfo meta) {
|
||||
meta.sharedLibrary = mResTable.getSharedLibrary();
|
||||
}
|
||||
|
||||
private void putSparseResourcesInfo(MetaInfo meta) throws AndrolibException {
|
||||
private void putSparseResourcesInfo(MetaInfo meta) {
|
||||
meta.sparseResources = mResTable.getSparseResources();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user