diff options
author | Colin Cross <ccross@android.com> | 2024-01-11 16:54:56 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2024-01-11 16:54:56 +0000 |
commit | 8647a4ea24926a81e1415aea5ddaa9c65a681869 (patch) | |
tree | 3e33025352f9eaf60636951e7e1931e4e56cc219 /src/main/com/tonicsystems/jarjar/util/JarProcessorChain.java | |
parent | 5d00ceee6b5c5c7d7ba2cce6372ec082a729eaf4 (diff) | |
parent | cc522d005360220f685787d94739d65f6c9ee264 (diff) | |
download | jarjar-8647a4ea24926a81e1415aea5ddaa9c65a681869.tar.gz |
Merge remote-tracking branch 'aosp/upstream-master' am: 02bd81f6e8 am: cc522d0053
Original change: https://android-review.googlesource.com/c/platform/external/jarjar/+/2904651
Change-Id: Icf1b70e87e1ab7171a2d2fbdbf69efb17e5eb721
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'src/main/com/tonicsystems/jarjar/util/JarProcessorChain.java')
-rw-r--r-- | src/main/com/tonicsystems/jarjar/util/JarProcessorChain.java | 42 |
1 files changed, 18 insertions, 24 deletions
diff --git a/src/main/com/tonicsystems/jarjar/util/JarProcessorChain.java b/src/main/com/tonicsystems/jarjar/util/JarProcessorChain.java index 06ac85d..6360a3f 100644 --- a/src/main/com/tonicsystems/jarjar/util/JarProcessorChain.java +++ b/src/main/com/tonicsystems/jarjar/util/JarProcessorChain.java @@ -1,4 +1,4 @@ -/** +/* * Copyright 2007 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -18,31 +18,25 @@ package com.tonicsystems.jarjar.util; import java.io.IOException; -public class JarProcessorChain implements JarProcessor -{ - private final JarProcessor[] chain; +public class JarProcessorChain implements JarProcessor { + private final JarProcessor[] chain; - public JarProcessorChain(JarProcessor[] chain) - { - this.chain = chain.clone(); - } + public JarProcessorChain(JarProcessor[] chain) { + this.chain = chain.clone(); + } - /** - * @param struct - * @return <code>true</code> if the entry has run the complete chain - * @throws IOException - */ - public boolean process(EntryStruct struct) throws IOException - { + /** + * @param struct + * @return <code>true</code> if the entry has run the complete chain + * @throws IOException + */ + public boolean process(EntryStruct struct) throws IOException { - for (JarProcessor aChain : chain) - { - if (!aChain.process(struct)) - { - return false; - } - } - return true; + for (JarProcessor aChain : chain) { + if (!aChain.process(struct)) { + return false; + } } + return true; + } } - |