james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [11/21] james-project git commit: JAMES-2044 Rename some non explicit variable in MessageSearches
Date Wed, 07 Jun 2017 10:46:21 GMT
JAMES-2044 Rename some non explicit variable in MessageSearches


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

Branch: refs/heads/master
Commit: 86e070366de5a17e91dd6d9b0c654a64853d2f57
Parents: c78db73
Author: benwa <btellier@linagora.com>
Authored: Wed Jun 7 09:21:19 2017 +0700
Committer: benwa <btellier@linagora.com>
Committed: Wed Jun 7 17:34:33 2017 +0700

----------------------------------------------------------------------
 .../mailbox/store/search/MessageSearches.java   | 26 ++++++++++----------
 1 file changed, 13 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/86e07036/mailbox/store/src/main/java/org/apache/james/mailbox/store/search/MessageSearches.java
----------------------------------------------------------------------
diff --git a/mailbox/store/src/main/java/org/apache/james/mailbox/store/search/MessageSearches.java
b/mailbox/store/src/main/java/org/apache/james/mailbox/store/search/MessageSearches.java
index 414abf9..ae5690e 100644
--- a/mailbox/store/src/main/java/org/apache/james/mailbox/store/search/MessageSearches.java
+++ b/mailbox/store/src/main/java/org/apache/james/mailbox/store/search/MessageSearches.java
@@ -578,34 +578,34 @@ public class MessageSearches implements Iterable<SimpleMessageSearchIndex.Search
         }
     }
 
-    private boolean on(Date date1, Date date2, DateResolution res) {
-        String d1 = createDateString(date1, res);
-        String d2 = createDateString(date2, res);
+    private boolean on(Date date1, Date date2, DateResolution dateResolution) {
+        String d1 = createDateString(date1, dateResolution);
+        String d2 = createDateString(date2, dateResolution);
         return d1.compareTo(d2) == 0;
     }
 
-    private boolean before(Date date1, Date date2, DateResolution res) {
-        String d1 = createDateString(date1, res);
-        String d2 = createDateString(date2, res);
+    private boolean before(Date date1, Date date2, DateResolution dateResolution) {
+        String d1 = createDateString(date1, dateResolution);
+        String d2 = createDateString(date2, dateResolution);
 
         return d1.compareTo(d2) < 0;
     }
 
-    private boolean after(Date date1, Date date2, DateResolution res) {
-        String d1 = createDateString(date1, res);
-        String d2 = createDateString(date2, res);
+    private boolean after(Date date1, Date date2, DateResolution dateResolution) {
+        String d1 = createDateString(date1, dateResolution);
+        String d2 = createDateString(date2, dateResolution);
 
         return d1.compareTo(d2) > 0;
     }
 
-    private String createDateString(Date date, DateResolution res) {
-        SimpleDateFormat format = createFormat(res);
+    private String createDateString(Date date, DateResolution dateResolution) {
+        SimpleDateFormat format = createFormat(dateResolution);
         format.setCalendar(getGMT());
         return format.format(date);
     }
 
-    private SimpleDateFormat createFormat(DateResolution res) {
-        switch (res) {
+    private SimpleDateFormat createFormat(DateResolution dateResolution) {
+        switch (dateResolution) {
         case Year:
             return new SimpleDateFormat("yyyy");
         case Month:


---------------------------------------------------------------------
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