Repository: maven-surefire Updated Branches: refs/heads/master 925794532 -> 0d4ca4dec
[SUREFIRE] refactoring Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/54c8f2f1 Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/54c8f2f1 Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/54c8f2f1 Branch: refs/heads/master Commit: 54c8f2f1c082e3c6b4995f2b9342ebdc1cf44561 Parents: 9257945 Author: Tibor17 <tibo...@lycos.com> Authored: Sat Oct 10 22:55:13 2015 +0200 Committer: Tibor17 <tibo...@lycos.com> Committed: Sat Oct 10 22:55:13 2015 +0200 ---------------------------------------------------------------------- .../maven/surefire/group/match/InverseGroupMatcher.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/54c8f2f1/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/InverseGroupMatcher.java ---------------------------------------------------------------------- diff --git a/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/InverseGroupMatcher.java b/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/InverseGroupMatcher.java index fe60869..0ab1d43 100644 --- a/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/InverseGroupMatcher.java +++ b/surefire-grouper/src/main/java/org/apache/maven/surefire/group/match/InverseGroupMatcher.java @@ -56,7 +56,7 @@ public class InverseGroupMatcher { final int prime = 31; int result = 1; - result = prime * result + ( ( matcher == null ) ? 0 : matcher.hashCode() ); + result = prime * result + ( matcher == null ? 0 : matcher.hashCode() ); return result; } @@ -67,11 +67,8 @@ public class InverseGroupMatcher { return true; } - if ( obj == null ) - { - return false; - } - if ( getClass() != obj.getClass() ) + + if ( obj == null || getClass() != obj.getClass() ) { return false; }