james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [06/12] james-project git commit: JAMES-2161 Document keyword factories
Date Tue, 27 Nov 2018 02:06:33 GMT
JAMES-2161 Document keyword factories


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/334ee229
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/334ee229
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/334ee229

Branch: refs/heads/master
Commit: 334ee229fad53f829dfb3dfcf5fda4d9c7b7a36c
Parents: a4d5cc4
Author: Benoit Tellier <btellier@linagora.com>
Authored: Fri Nov 23 16:38:37 2018 +0700
Committer: Benoit Tellier <btellier@linagora.com>
Committed: Tue Nov 27 09:01:54 2018 +0700

----------------------------------------------------------------------
 .../main/java/org/apache/james/jmap/model/Keywords.java   | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/334ee229/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/Keywords.java
----------------------------------------------------------------------
diff --git a/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/Keywords.java
b/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/Keywords.java
index 24ef90e..3579c29 100644
--- a/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/Keywords.java
+++ b/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/Keywords.java
@@ -147,10 +147,20 @@ public class Keywords {
         }
     }
 
+    /**
+     * This Keywords factory will filter out invalid keywords (containing inavlid character,
being too long or being non
+     * exposed IMAP flags)
+     */
     public static KeywordsFactory strictFactory() {
         return STRICT_KEYWORDS_FACTORY;
     }
 
+    /**
+     * This Keywords factory will throw upon invalid keywords (containing inavlid character,
being too long or being non
+     * exposed IMAP flags)
+     *
+     * @throws IllegalArgumentException
+     */
     public static KeywordsFactory lenientFactory() {
         return LENIENT_KEYWORDS_FACTORY;
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message