refactor: inline runnable on smali disassemble (#3490)

This commit is contained in:
Connor Tumbleson 2024-01-14 11:10:10 -05:00 committed by GitHub
parent e08ba75776
commit 69914eb596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,14 +217,13 @@ public class ApkDecoder {
} }
private void scheduleDecodeSourcesSmali(File outDir, String filename) { private void scheduleDecodeSourcesSmali(File outDir, String filename) {
Runnable r = () -> { mWorker.submit(() -> {
try { try {
decodeSourcesSmali(outDir, filename); decodeSourcesSmali(outDir, filename);
} catch (AndrolibException e) { } catch (AndrolibException e) {
mBuildError.compareAndSet(null, new RuntimeException(e)); mBuildError.compareAndSet(null, new RuntimeException(e));
} }
}; });
mWorker.submit(r);
} }
private void decodeSourcesSmali(File outDir, String filename) throws AndrolibException { private void decodeSourcesSmali(File outDir, String filename) throws AndrolibException {