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 bt...@apache.org on 2017/03/21 00:52:41 UTC
[4/7] james-project git commit: JAMES-1967 replace Locale.ENGLISH by
Locale.US
JAMES-1967 replace Locale.ENGLISH by Locale.US
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/f6a61ae4
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/f6a61ae4
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/f6a61ae4
Branch: refs/heads/master
Commit: f6a61ae4ba5b6ac1a923efcf39c040d610290622
Parents: 32f88af
Author: benwa <bt...@linagora.com>
Authored: Fri Mar 17 17:29:17 2017 +0700
Committer: benwa <bt...@linagora.com>
Committed: Tue Mar 21 07:51:53 2017 +0700
----------------------------------------------------------------------
.../main/java/org/apache/james/jmap/model/mailbox/Role.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/james-project/blob/f6a61ae4/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/mailbox/Role.java
----------------------------------------------------------------------
diff --git a/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/mailbox/Role.java b/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/mailbox/Role.java
index 7bc6bf1..cb769a5 100644
--- a/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/mailbox/Role.java
+++ b/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/mailbox/Role.java
@@ -48,7 +48,7 @@ public class Role {
private static final Map<String, Role> ROLES =
ImmutableList.<Role>of(INBOX, ARCHIVE, DRAFTS, OUTBOX, SENT, TRASH, SPAM, TEMPLATES)
.stream()
- .collect(Collectors.toMap((Role x) -> x.name.toLowerCase(Locale.ENGLISH), Function.identity()));
+ .collect(Collectors.toMap((Role x) -> x.name.toLowerCase(Locale.US), Function.identity()));
private final String name;
private final String defaultMailbox;
@@ -64,7 +64,7 @@ public class Role {
}
public static Optional<Role> from(String name) {
- Optional<Role> predefinedRole = Optional.ofNullable(ROLES.get(name.toLowerCase(Locale.ENGLISH)));
+ Optional<Role> predefinedRole = Optional.ofNullable(ROLES.get(name.toLowerCase(Locale.US)));
if (predefinedRole.isPresent()) {
return predefinedRole;
} else {
@@ -80,7 +80,7 @@ public class Role {
}
public boolean isSystemRole() {
- return ROLES.containsKey(name.toLowerCase(Locale.ENGLISH));
+ return ROLES.containsKey(name.toLowerCase(Locale.US));
}
@JsonValue
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org