You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2016/12/21 15:59:55 UTC

[06/12] ant git commit: false positive for class name comparison

false positive for class name comparison


Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/0d648167
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/0d648167
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/0d648167

Branch: refs/heads/master
Commit: 0d648167bcf6eb4384ab04f7b9d63494208b85b6
Parents: 70eaeda
Author: Stefan Bodewig <bo...@apache.org>
Authored: Wed Dec 21 15:45:33 2016 +0100
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Wed Dec 21 16:00:42 2016 +0100

----------------------------------------------------------------------
 src/main/org/apache/tools/ant/types/Permissions.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant/blob/0d648167/src/main/org/apache/tools/ant/types/Permissions.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/types/Permissions.java b/src/main/org/apache/tools/ant/types/Permissions.java
index 96da71b..d0559c7 100644
--- a/src/main/org/apache/tools/ant/types/Permissions.java
+++ b/src/main/org/apache/tools/ant/types/Permissions.java
@@ -302,7 +302,7 @@ public class Permissions {
          * @param perm The permission to check against.
          */
         boolean matches(final java.security.Permission perm) {
-            if (!className.equals(perm.getClass().getName())) {
+            if (!className.equals(perm.getClass().getName())) { //NOSONAR
                 return false;
             }
             if (name != null) {