ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject [1/3] ant git commit: Sonar's idea of Streams is a bit strange
Date Tue, 20 Dec 2016 21:27:35 GMT
Repository: ant
Updated Branches:
  refs/heads/master 2bb5b057d -> 1f045ecb3


Sonar's idea of Streams is a bit strange


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

Branch: refs/heads/master
Commit: 197ed22d54cc92611c2d39f19b845ebf824ea8e6
Parents: 2bb5b05
Author: Stefan Bodewig <bodewig@apache.org>
Authored: Tue Dec 20 22:25:11 2016 +0100
Committer: Stefan Bodewig <bodewig@apache.org>
Committed: Tue Dec 20 22:25:11 2016 +0100

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


http://git-wip-us.apache.org/repos/asf/ant/blob/197ed22d/src/main/org/apache/tools/ant/taskdefs/SetPermissions.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/taskdefs/SetPermissions.java b/src/main/org/apache/tools/ant/taskdefs/SetPermissions.java
index 7518077..052c569 100644
--- a/src/main/org/apache/tools/ant/taskdefs/SetPermissions.java
+++ b/src/main/org/apache/tools/ant/taskdefs/SetPermissions.java
@@ -85,7 +85,7 @@ public class SetPermissions extends Task {
      */
     public void setPermissions(String perms) {
         if (perms != null) {
-            Arrays.stream(perms.split(","))
+            Arrays.stream(perms.split(",")) //NOSONAR
                 .map(String::trim)
                 .filter(s -> !s.isEmpty())
                 .map(s -> Enum.valueOf(PosixFilePermission.class, s))


Mime
View raw message