You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2021/07/22 08:55:52 UTC

[isis] branch master updated: ISIS-2297: sonar: Conditionally executed code should be reachable

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

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/master by this push:
     new 03d5ab7  ISIS-2297: sonar: Conditionally executed code should be reachable
03d5ab7 is described below

commit 03d5ab75561fcb0af63223d67895cfea442a07ac
Author: Andi Huber <ah...@apache.org>
AuthorDate: Thu Jul 22 10:55:40 2021 +0200

    ISIS-2297: sonar: Conditionally executed code should be reachable
---
 .../testing/archtestsupport/applib/classrules/ArchitectureJpaRules.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testing/archtestsupport/applib/src/main/java/org/apache/isis/testing/archtestsupport/applib/classrules/ArchitectureJpaRules.java b/testing/archtestsupport/applib/src/main/java/org/apache/isis/testing/archtestsupport/applib/classrules/ArchitectureJpaRules.java
index 407e32c..61a6a89 100644
--- a/testing/archtestsupport/applib/src/main/java/org/apache/isis/testing/archtestsupport/applib/classrules/ArchitectureJpaRules.java
+++ b/testing/archtestsupport/applib/src/main/java/org/apache/isis/testing/archtestsupport/applib/classrules/ArchitectureJpaRules.java
@@ -84,7 +84,7 @@ public class ArchitectureJpaRules {
             private boolean containsIsisEntityListener(final JavaClass[] classes) {
                 return Arrays.stream(classes)
                         .anyMatch(x -> Objects.equals(x.getFullName(), JpaEntityInjectionPointResolver.class.getName())
-                                || x.isAssignableTo(IsisEntityListener.class) || x.isAssignableTo(IsisEntityListener.class));
+                                || x.isAssignableTo(IsisEntityListener.class));
             }
         };
     }