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

tibordigana pushed a commit to branch 3.0.0-M2
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git

commit 0e212dbab652bb9fc795c5a281519d8aec55a674
Author: Tibor17 <tibordig...@apache.org>
AuthorDate: Sun Nov 11 23:21:48 2018 +0100

    [SUREFIRE-1594] Java 1.7 feature try-catch - multiple exceptions in one 
catch
---
 .../apache/maven/plugin/surefire/SurefireDependencyResolver.java    | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git 
a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireDependencyResolver.java
 
b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireDependencyResolver.java
index af85bf4..e403433 100644
--- 
a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireDependencyResolver.java
+++ 
b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireDependencyResolver.java
@@ -113,11 +113,7 @@ final class SurefireDependencyResolver
                 return range.containsVersion( new DefaultArtifactVersion( 
artifact.getBaseVersion() ) );
             }
         }
-        catch ( InvalidVersionSpecificationException e )
-        {
-            throw new RuntimeException( "Bug in plugin. Please report with 
stacktrace" );
-        }
-        catch ( OverConstrainedVersionException e )
+        catch ( InvalidVersionSpecificationException | 
OverConstrainedVersionException e )
         {
             throw new RuntimeException( "Bug in plugin. Please report with 
stacktrace" );
         }

Reply via email to