You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/01/08 14:19:09 UTC

[commons-bcel] branch master updated: Collapse multiple identical catch clauses into one.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-bcel.git


The following commit(s) were added to refs/heads/master by this push:
     new 50b485a  Collapse multiple identical catch clauses into one.
50b485a is described below

commit 50b485ae44e32a696f41c862536fff2c043d42a7
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Jan 8 09:19:03 2021 -0500

    Collapse multiple identical catch clauses into one.
---
 src/main/java/org/apache/bcel/verifier/statics/Pass1Verifier.java | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/main/java/org/apache/bcel/verifier/statics/Pass1Verifier.java b/src/main/java/org/apache/bcel/verifier/statics/Pass1Verifier.java
index 8e87ee3..89c2377 100644
--- a/src/main/java/org/apache/bcel/verifier/statics/Pass1Verifier.java
+++ b/src/main/java/org/apache/bcel/verifier/statics/Pass1Verifier.java
@@ -159,10 +159,7 @@ public final class Pass1Verifier extends PassVerifier{
             }
 
         }
-        catch(final LoadingException e) {
-            return new VerificationResult(VerificationResult.VERIFIED_REJECTED, e.getMessage());
-        }
-        catch(final ClassFormatException e) {
+        catch(final LoadingException | ClassFormatException e) {
             return new VerificationResult(VerificationResult.VERIFIED_REJECTED, e.getMessage());
         }
         catch(final RuntimeException e) {