You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ma...@apache.org on 2017/09/29 07:22:06 UTC
[28/31] james-project git commit: MAILBOX-307 Fix Eclipse warnings
MAILBOX-307 Fix Eclipse warnings
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/6d87110f
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/6d87110f
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/6d87110f
Branch: refs/heads/master
Commit: 6d87110fd569dcdea4d5a917e8f5e12e9741d6de
Parents: d5e1cf8
Author: Antoine Duprat <ad...@linagora.com>
Authored: Thu Sep 28 14:37:37 2017 +0200
Committer: Matthieu Baechler <ma...@apache.org>
Committed: Fri Sep 29 09:20:41 2017 +0200
----------------------------------------------------------------------
.../main/java/org/apache/james/mailbox/model/MailboxACL.java | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/james-project/blob/6d87110f/mailbox/api/src/main/java/org/apache/james/mailbox/model/MailboxACL.java
----------------------------------------------------------------------
diff --git a/mailbox/api/src/main/java/org/apache/james/mailbox/model/MailboxACL.java b/mailbox/api/src/main/java/org/apache/james/mailbox/model/MailboxACL.java
index 711f95c..4939f47 100644
--- a/mailbox/api/src/main/java/org/apache/james/mailbox/model/MailboxACL.java
+++ b/mailbox/api/src/main/java/org/apache/james/mailbox/model/MailboxACL.java
@@ -317,11 +317,6 @@ public class MailboxACL {
rightUnion.addAll(toAdd.value);
return new Rfc4314Rights(rightUnion);
}
-
- private static Rfc4314Rights empty() {
- return new Rfc4314Rights();
- }
-
}
/**
@@ -575,7 +570,7 @@ public class MailboxACL {
private static Map<EntryKey, Rfc4314Rights> toMap(Properties props) throws UnsupportedRightException {
ImmutableMap.Builder<EntryKey, Rfc4314Rights> builder = ImmutableMap.builder();
if (props != null) {
- for (Map.Entry prop : props.entrySet()) {
+ for (Map.Entry<?, ?> prop : props.entrySet()) {
builder.put(EntryKey.deserialize((String) prop.getKey()), new Rfc4314Rights((String) prop.getValue()));
}
}
@@ -598,6 +593,7 @@ public class MailboxACL {
*
* @param entries
*/
+ @SafeVarargs
public MailboxACL(Map.Entry<EntryKey, Rfc4314Rights>... entries) {
this(ImmutableMap.copyOf(
Optional.ofNullable(entries)
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org