james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rouaz...@apache.org
Subject [james-project] 06/29: JAMES-2855 Upgrade checkstyle plugin to 3.1.0
Date Tue, 03 Sep 2019 15:39:58 GMT
This is an automated email from the ASF dual-hosted git repository.

rouazana pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit a433b9e17f51b81c12ea4818d1fceaa449705e36
Author: Benoit Tellier <btellier@linagora.com>
AuthorDate: Wed Aug 28 15:14:21 2019 +0700

    JAMES-2855 Upgrade checkstyle plugin to 3.1.0
---
 .../listeners/SetCustomFlagOnBigMessages.java      |  2 +-
 .../james/mailbox/events/EventBusTestFixture.java  | 12 +++++--
 .../mailbox/events/EventDeadLettersContract.java   | 40 ++++++++++++++++------
 .../org/apache/james/mailbox/events/GroupTest.java | 12 +++++--
 .../apache/james/mailbox/util/EventCollector.java  |  4 ++-
 .../caching/CacheInvalidatingMailboxListener.java  |  4 ++-
 .../cassandra/MailboxOperationLoggingListener.java |  4 ++-
 .../ElasticSearchListeningMessageSearchIndex.java  |  4 ++-
 .../james/mailbox/jpa/mail/model/JPAUserFlag.java  |  4 ++-
 .../mailbox/jpa/user/model/JPASubscription.java    |  4 ++-
 .../lucene/search/LuceneMessageSearchIndex.java    |  4 ++-
 .../listeners/QuotaThresholdCrossingListener.java  |  4 ++-
 .../events/ElasticSearchQuotaMailboxListener.java  |  1 +
 .../mailbox/spamassassin/SpamAssassinListener.java |  4 ++-
 .../store/event/MailboxAnnotationListener.java     |  4 ++-
 .../store/quota/ListeningCurrentQuotaUpdater.java  |  4 ++-
 .../store/search/LazyMessageSearchIndex.java       |  4 ++-
 .../org/apache/mailet/base/RFC2822Headers.java     |  4 ++-
 pom.xml                                            |  4 +--
 .../james/managesieve/api/ArgumentException.java   |  4 ++-
 .../api/AuthenticationRequiredException.java       |  4 ++-
 .../james/modules/mailbox/NoopMailboxListener.java |  4 ++-
 .../org/apache/james/FakeMessageSearchIndex.java   |  4 ++-
 .../java/org/apache/james/util/MDCBuilder.java     |  4 ++-
 .../transport/mailets/jsieve/SieveMailAdapter.java |  4 ++-
 .../org/apache/james/jmap/JMAPConfiguration.java   |  4 ++-
 .../jmap/event/PropagateLookupRightListener.java   |  4 ++-
 .../james/jmap/model/AccessTokenRequest.java       |  4 ++-
 .../james/jmap/model/AccessTokenResponse.java      |  4 ++-
 .../james/jmap/model/AttachmentAccessToken.java    |  4 ++-
 .../apache/james/jmap/model/ContinuationToken.java |  4 ++-
 .../james/jmap/model/ContinuationTokenRequest.java |  4 ++-
 .../jmap/model/ContinuationTokenResponse.java      |  4 ++-
 .../EventDeadLettersIntegrationTest.java           |  4 ++-
 .../james/queue/memory/MemoryMailQueueFactory.java |  4 ++-
 .../view/cassandra/CassandraMailQueueBrowser.java  |  4 ++-
 36 files changed, 142 insertions(+), 49 deletions(-)

diff --git a/examples/custom-listeners/src/main/java/org/apache/james/examples/custom/listeners/SetCustomFlagOnBigMessages.java
b/examples/custom-listeners/src/main/java/org/apache/james/examples/custom/listeners/SetCustomFlagOnBigMessages.java
index 6b985d5..f435605 100644
--- a/examples/custom-listeners/src/main/java/org/apache/james/examples/custom/listeners/SetCustomFlagOnBigMessages.java
+++ b/examples/custom-listeners/src/main/java/org/apache/james/examples/custom/listeners/SetCustomFlagOnBigMessages.java
@@ -43,8 +43,8 @@ import org.slf4j.LoggerFactory;
  *
  */
 class SetCustomFlagOnBigMessages implements MailboxListener.GroupMailboxListener {
-
     public static class PositionCustomFlagOnBigMessagesGroup extends Group {
+
     }
 
     private static final PositionCustomFlagOnBigMessagesGroup GROUP = new PositionCustomFlagOnBigMessagesGroup();
diff --git a/mailbox/api/src/test/java/org/apache/james/mailbox/events/EventBusTestFixture.java
b/mailbox/api/src/test/java/org/apache/james/mailbox/events/EventBusTestFixture.java
index 9598b9d..0a59c42 100644
--- a/mailbox/api/src/test/java/org/apache/james/mailbox/events/EventBusTestFixture.java
+++ b/mailbox/api/src/test/java/org/apache/james/mailbox/events/EventBusTestFixture.java
@@ -80,11 +80,17 @@ public interface EventBusTestFixture {
         }
     }
 
-    class GroupA extends Group {}
+    class GroupA extends Group {
 
-    class GroupB extends Group {}
+    }
+
+    class GroupB extends Group {
+
+    }
+
+    class GroupC extends Group {
 
-    class GroupC extends Group {}
+    }
 
     MailboxSession.SessionId SESSION_ID = MailboxSession.SessionId.of(42);
     User USER = User.fromUsername("user");
diff --git a/mailbox/api/src/test/java/org/apache/james/mailbox/events/EventDeadLettersContract.java
b/mailbox/api/src/test/java/org/apache/james/mailbox/events/EventDeadLettersContract.java
index af49e42..4540a1b 100644
--- a/mailbox/api/src/test/java/org/apache/james/mailbox/events/EventDeadLettersContract.java
+++ b/mailbox/api/src/test/java/org/apache/james/mailbox/events/EventDeadLettersContract.java
@@ -47,25 +47,45 @@ import com.google.common.collect.Multimaps;
 
 interface EventDeadLettersContract {
 
-    class Group0 extends Group{}
+    class Group0 extends Group {
 
-    class Group1 extends Group{}
+    }
+
+    class Group1 extends Group {
+
+    }
+
+    class Group2 extends Group {
+
+    }
+
+    class Group3 extends Group {
+
+    }
 
-    class Group2 extends Group{}
+    class Group4 extends Group {
 
-    class Group3 extends Group{}
+    }
+
+    class Group5 extends Group {
+
+    }
+
+    class Group6 extends Group {
 
-    class Group4 extends Group{}
+    }
 
-    class Group5 extends Group{}
+    class Group7 extends Group {
 
-    class Group6 extends Group{}
+    }
 
-    class Group7 extends Group{}
+    class Group8 extends Group {
 
-    class Group8 extends Group{}
+    }
 
-    class Group9 extends Group{}
+    class Group9 extends Group {
+
+    }
 
     static ImmutableMap<Integer, Group> concurrentGroups() {
         return IntStream.range(0, CONCURRENT_GROUPS.size()).boxed()
diff --git a/mailbox/api/src/test/java/org/apache/james/mailbox/events/GroupTest.java b/mailbox/api/src/test/java/org/apache/james/mailbox/events/GroupTest.java
index b28fd9f..617e191 100644
--- a/mailbox/api/src/test/java/org/apache/james/mailbox/events/GroupTest.java
+++ b/mailbox/api/src/test/java/org/apache/james/mailbox/events/GroupTest.java
@@ -27,11 +27,17 @@ import org.junit.jupiter.api.Test;
 import nl.jqno.equalsverifier.EqualsVerifier;
 
 class GroupTest {
-    static class GroupA extends Group {}
+    static class GroupA extends Group {
 
-    static class GroupB extends Group {}
+    }
+
+    static class GroupB extends Group {
+
+    }
+
+    static class GroupC extends GroupA {
 
-    static class GroupC extends GroupA {}
+    }
 
     @Test
     void shouldMatchBeanContract() {
diff --git a/mailbox/api/src/test/java/org/apache/james/mailbox/util/EventCollector.java b/mailbox/api/src/test/java/org/apache/james/mailbox/util/EventCollector.java
index a195beb..d149fc8 100644
--- a/mailbox/api/src/test/java/org/apache/james/mailbox/util/EventCollector.java
+++ b/mailbox/api/src/test/java/org/apache/james/mailbox/util/EventCollector.java
@@ -27,7 +27,9 @@ import org.apache.james.mailbox.events.Group;
 import org.apache.james.mailbox.events.MailboxListener;
 
 public class EventCollector implements MailboxListener.GroupMailboxListener {
-    public static class EventCollectorGroup extends Group {}
+    public static class EventCollectorGroup extends Group {
+
+    }
 
     private static final Group GROUP = new EventCollectorGroup();
 
diff --git a/mailbox/caching/src/main/java/org/apache/james/mailbox/caching/CacheInvalidatingMailboxListener.java
b/mailbox/caching/src/main/java/org/apache/james/mailbox/caching/CacheInvalidatingMailboxListener.java
index 6d40377..327a85f 100644
--- a/mailbox/caching/src/main/java/org/apache/james/mailbox/caching/CacheInvalidatingMailboxListener.java
+++ b/mailbox/caching/src/main/java/org/apache/james/mailbox/caching/CacheInvalidatingMailboxListener.java
@@ -17,7 +17,9 @@ import org.slf4j.LoggerFactory;
  */
 @Deprecated
 public class CacheInvalidatingMailboxListener implements MailboxListener.GroupMailboxListener
{
-    public static class CacheInvalidatingMailboxListenerGroup extends Group {}
+    public static class CacheInvalidatingMailboxListenerGroup extends Group {
+
+    }
 
     private static final Logger LOGGER = LoggerFactory.getLogger(CacheInvalidatingMailboxListener.class);
     private static final Group GROUP = new CacheInvalidatingMailboxListenerGroup();
diff --git a/mailbox/cassandra/src/main/java/org/apache/james/mailbox/cassandra/MailboxOperationLoggingListener.java
b/mailbox/cassandra/src/main/java/org/apache/james/mailbox/cassandra/MailboxOperationLoggingListener.java
index bcd44f0..e5915aa 100644
--- a/mailbox/cassandra/src/main/java/org/apache/james/mailbox/cassandra/MailboxOperationLoggingListener.java
+++ b/mailbox/cassandra/src/main/java/org/apache/james/mailbox/cassandra/MailboxOperationLoggingListener.java
@@ -33,7 +33,9 @@ import org.apache.james.mailbox.events.MailboxListener;
  * This class logs mailboxes writes in order to give context to analyse ghost mailbox bug.
  */
 public class MailboxOperationLoggingListener implements MailboxListener.GroupMailboxListener
{
-    public static class MailboxOperationLoggingListenerGroup extends Group {}
+    public static class MailboxOperationLoggingListenerGroup extends Group {
+
+    }
 
     public static final String ADDED = "Added";
     public static final String REMOVED = "Removed";
diff --git a/mailbox/elasticsearch/src/main/java/org/apache/james/mailbox/elasticsearch/events/ElasticSearchListeningMessageSearchIndex.java
b/mailbox/elasticsearch/src/main/java/org/apache/james/mailbox/elasticsearch/events/ElasticSearchListeningMessageSearchIndex.java
index 23e2845..d93836b 100644
--- a/mailbox/elasticsearch/src/main/java/org/apache/james/mailbox/elasticsearch/events/ElasticSearchListeningMessageSearchIndex.java
+++ b/mailbox/elasticsearch/src/main/java/org/apache/james/mailbox/elasticsearch/events/ElasticSearchListeningMessageSearchIndex.java
@@ -61,7 +61,9 @@ import com.google.common.base.Preconditions;
 import com.google.common.collect.ImmutableList;
 
 public class ElasticSearchListeningMessageSearchIndex extends ListeningMessageSearchIndex
{
-    public static class ElasticSearchListeningMessageSearchIndexGroup extends Group {}
+    public static class ElasticSearchListeningMessageSearchIndexGroup extends Group {
+
+    }
 
     private static final Logger LOGGER = LoggerFactory.getLogger(ElasticSearchListeningMessageSearchIndex.class);
     private static final String ID_SEPARATOR = ":";
diff --git a/mailbox/jpa/src/main/java/org/apache/james/mailbox/jpa/mail/model/JPAUserFlag.java
b/mailbox/jpa/src/main/java/org/apache/james/mailbox/jpa/mail/model/JPAUserFlag.java
index 9ed8cbf..318dfa0 100644
--- a/mailbox/jpa/src/main/java/org/apache/james/mailbox/jpa/mail/model/JPAUserFlag.java
+++ b/mailbox/jpa/src/main/java/org/apache/james/mailbox/jpa/mail/model/JPAUserFlag.java
@@ -46,7 +46,9 @@ public class JPAUserFlag {
      * @deprecated enhancement only
      */
     @Deprecated 
-    public JPAUserFlag() {}
+    public JPAUserFlag() {
+
+    }
     
     /**
      * Constructs a User Flag.
diff --git a/mailbox/jpa/src/main/java/org/apache/james/mailbox/jpa/user/model/JPASubscription.java
b/mailbox/jpa/src/main/java/org/apache/james/mailbox/jpa/user/model/JPASubscription.java
index 359f007..5cb4a52 100644
--- a/mailbox/jpa/src/main/java/org/apache/james/mailbox/jpa/user/model/JPASubscription.java
+++ b/mailbox/jpa/src/main/java/org/apache/james/mailbox/jpa/user/model/JPASubscription.java
@@ -72,7 +72,9 @@ public class JPASubscription implements Subscription {
      * Used by JPA
      */
     @Deprecated
-    public JPASubscription() {}
+    public JPASubscription() {
+
+    }
     
     /**
      * Constructs a user subscription.
diff --git a/mailbox/lucene/src/main/java/org/apache/james/mailbox/lucene/search/LuceneMessageSearchIndex.java
b/mailbox/lucene/src/main/java/org/apache/james/mailbox/lucene/search/LuceneMessageSearchIndex.java
index 8300b5c..188a291 100644
--- a/mailbox/lucene/src/main/java/org/apache/james/mailbox/lucene/search/LuceneMessageSearchIndex.java
+++ b/mailbox/lucene/src/main/java/org/apache/james/mailbox/lucene/search/LuceneMessageSearchIndex.java
@@ -132,7 +132,9 @@ import com.google.common.collect.ImmutableList;
  * @param 
  */
 public class LuceneMessageSearchIndex extends ListeningMessageSearchIndex {
-    private static class LuceneMessageSearchIndexGroup extends org.apache.james.mailbox.events.Group
{}
+    public static class LuceneMessageSearchIndexGroup extends org.apache.james.mailbox.events.Group
{
+
+    }
 
     private static final Logger LOGGER = LoggerFactory.getLogger(LuceneMessageSearchIndex.class);
     private static final Date MAX_DATE;
diff --git a/mailbox/plugin/quota-mailing/src/main/java/org/apache/james/mailbox/quota/mailing/listeners/QuotaThresholdCrossingListener.java
b/mailbox/plugin/quota-mailing/src/main/java/org/apache/james/mailbox/quota/mailing/listeners/QuotaThresholdCrossingListener.java
index 387c442..5bbea10 100644
--- a/mailbox/plugin/quota-mailing/src/main/java/org/apache/james/mailbox/quota/mailing/listeners/QuotaThresholdCrossingListener.java
+++ b/mailbox/plugin/quota-mailing/src/main/java/org/apache/james/mailbox/quota/mailing/listeners/QuotaThresholdCrossingListener.java
@@ -41,7 +41,9 @@ import org.apache.mailet.MailetContext;
 import com.google.common.collect.ImmutableSet;
 
 public class QuotaThresholdCrossingListener implements MailboxListener.GroupMailboxListener
{
-    public static class QuotaThresholdCrossingListenerGroup extends Group {}
+    public static class QuotaThresholdCrossingListenerGroup extends Group {
+
+    }
 
     private static final Group GROUP = new QuotaThresholdCrossingListenerGroup();
 
diff --git a/mailbox/plugin/quota-search-elasticsearch/src/main/java/org/apache/james/quota/search/elasticsearch/events/ElasticSearchQuotaMailboxListener.java
b/mailbox/plugin/quota-search-elasticsearch/src/main/java/org/apache/james/quota/search/elasticsearch/events/ElasticSearchQuotaMailboxListener.java
index 4e5f1ad..4fb96cb 100644
--- a/mailbox/plugin/quota-search-elasticsearch/src/main/java/org/apache/james/quota/search/elasticsearch/events/ElasticSearchQuotaMailboxListener.java
+++ b/mailbox/plugin/quota-search-elasticsearch/src/main/java/org/apache/james/quota/search/elasticsearch/events/ElasticSearchQuotaMailboxListener.java
@@ -32,6 +32,7 @@ import org.apache.james.quota.search.elasticsearch.json.QuotaRatioToElasticSearc
 
 public class ElasticSearchQuotaMailboxListener implements MailboxListener.GroupMailboxListener
{
     public static class ElasticSearchQuotaMailboxListenerGroup extends Group {
+
     }
 
     private static final Group GROUP = new ElasticSearchQuotaMailboxListenerGroup();
diff --git a/mailbox/plugin/spamassassin/src/main/java/org/apache/james/mailbox/spamassassin/SpamAssassinListener.java
b/mailbox/plugin/spamassassin/src/main/java/org/apache/james/mailbox/spamassassin/SpamAssassinListener.java
index de650dc..5801253 100644
--- a/mailbox/plugin/spamassassin/src/main/java/org/apache/james/mailbox/spamassassin/SpamAssassinListener.java
+++ b/mailbox/plugin/spamassassin/src/main/java/org/apache/james/mailbox/spamassassin/SpamAssassinListener.java
@@ -50,7 +50,9 @@ import com.google.common.annotations.VisibleForTesting;
 import com.google.common.collect.ImmutableList;
 
 public class SpamAssassinListener implements SpamEventListener {
-    public static class SpamAssassinListenerGroup extends Group {}
+    public static class SpamAssassinListenerGroup extends Group {
+
+    }
 
     private static final Logger LOGGER = LoggerFactory.getLogger(SpamAssassinListener.class);
     private static final int LIMIT = 1;
diff --git a/mailbox/store/src/main/java/org/apache/james/mailbox/store/event/MailboxAnnotationListener.java
b/mailbox/store/src/main/java/org/apache/james/mailbox/store/event/MailboxAnnotationListener.java
index 4fa8696..e469601 100644
--- a/mailbox/store/src/main/java/org/apache/james/mailbox/store/event/MailboxAnnotationListener.java
+++ b/mailbox/store/src/main/java/org/apache/james/mailbox/store/event/MailboxAnnotationListener.java
@@ -34,7 +34,9 @@ import org.apache.james.mailbox.store.SessionProvider;
 import org.apache.james.mailbox.store.mail.AnnotationMapper;
 
 public class MailboxAnnotationListener implements MailboxListener.GroupMailboxListener {
-    public static final class MailboxAnnotationListenerGroup extends Group {}
+    public static final class MailboxAnnotationListenerGroup extends Group {
+
+    }
 
     private static final Group GROUP = new MailboxAnnotationListenerGroup();
 
diff --git a/mailbox/store/src/main/java/org/apache/james/mailbox/store/quota/ListeningCurrentQuotaUpdater.java
b/mailbox/store/src/main/java/org/apache/james/mailbox/store/quota/ListeningCurrentQuotaUpdater.java
index e10d571..0180284 100644
--- a/mailbox/store/src/main/java/org/apache/james/mailbox/store/quota/ListeningCurrentQuotaUpdater.java
+++ b/mailbox/store/src/main/java/org/apache/james/mailbox/store/quota/ListeningCurrentQuotaUpdater.java
@@ -36,7 +36,9 @@ import org.apache.james.mailbox.store.event.EventFactory;
 import com.google.common.collect.ImmutableSet;
 
 public class ListeningCurrentQuotaUpdater implements MailboxListener.GroupMailboxListener,
QuotaUpdater {
-    public static class ListeningCurrentQuotaUpdaterGroup extends Group {}
+    public static class ListeningCurrentQuotaUpdaterGroup extends Group {
+
+    }
 
     public static final Group GROUP = new ListeningCurrentQuotaUpdaterGroup();
     private static final ImmutableSet<RegistrationKey> NO_REGISTRATION_KEYS = ImmutableSet.of();
diff --git a/mailbox/store/src/main/java/org/apache/james/mailbox/store/search/LazyMessageSearchIndex.java
b/mailbox/store/src/main/java/org/apache/james/mailbox/store/search/LazyMessageSearchIndex.java
index 61a2f9b..545bfa5 100644
--- a/mailbox/store/src/main/java/org/apache/james/mailbox/store/search/LazyMessageSearchIndex.java
+++ b/mailbox/store/src/main/java/org/apache/james/mailbox/store/search/LazyMessageSearchIndex.java
@@ -57,7 +57,9 @@ import com.google.common.base.Preconditions;
  *
  */
 public class LazyMessageSearchIndex extends ListeningMessageSearchIndex {
-    public static class LazyMessageSearchIndexGroup extends Group {}
+    public static class LazyMessageSearchIndexGroup extends Group {
+
+    }
 
     private static final Logger LOGGER = LoggerFactory.getLogger(LazyMessageSearchIndex.class);
     private static final Group GROUP = new LazyMessageSearchIndexGroup();
diff --git a/mailet/base/src/main/java/org/apache/mailet/base/RFC2822Headers.java b/mailet/base/src/main/java/org/apache/mailet/base/RFC2822Headers.java
index 4f5233b..304e1c2 100644
--- a/mailet/base/src/main/java/org/apache/mailet/base/RFC2822Headers.java
+++ b/mailet/base/src/main/java/org/apache/mailet/base/RFC2822Headers.java
@@ -175,6 +175,8 @@ public class RFC2822Headers  {
     /**
      * Private constructor to prevent instantiation
      */
-    private RFC2822Headers() {}
+    private RFC2822Headers() {
+
+    }
 
 }
diff --git a/pom.xml b/pom.xml
index bb98baf..bf31057 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2712,7 +2712,7 @@
                 <plugin>
                     <groupId>org.apache.maven.plugins</groupId>
                     <artifactId>maven-checkstyle-plugin</artifactId>
-                    <version>2.17</version>
+                    <version>3.1.0</version>
                 </plugin>
                 <plugin>
                     <groupId>org.apache.maven.plugins</groupId>
@@ -3180,7 +3180,7 @@
                     <dependency>
                         <groupId>com.puppycrawl.tools</groupId>
                         <artifactId>checkstyle</artifactId>
-                        <version>8.18</version>
+                        <version>8.23</version>
                     </dependency>
                 </dependencies>
                 <executions>
diff --git a/protocols/managesieve/src/main/java/org/apache/james/managesieve/api/ArgumentException.java
b/protocols/managesieve/src/main/java/org/apache/james/managesieve/api/ArgumentException.java
index fae5d57..019d220 100644
--- a/protocols/managesieve/src/main/java/org/apache/james/managesieve/api/ArgumentException.java
+++ b/protocols/managesieve/src/main/java/org/apache/james/managesieve/api/ArgumentException.java
@@ -24,7 +24,9 @@ public class ArgumentException extends ManageSieveException {
 
     private static final long serialVersionUID = -7407426714052613820L;
 
-    public ArgumentException() {}
+    public ArgumentException() {
+
+    }
 
     public ArgumentException(String message, Throwable cause) {
         super(message, cause);
diff --git a/protocols/managesieve/src/main/java/org/apache/james/managesieve/api/AuthenticationRequiredException.java
b/protocols/managesieve/src/main/java/org/apache/james/managesieve/api/AuthenticationRequiredException.java
index 119d58a..306fdd7 100644
--- a/protocols/managesieve/src/main/java/org/apache/james/managesieve/api/AuthenticationRequiredException.java
+++ b/protocols/managesieve/src/main/java/org/apache/james/managesieve/api/AuthenticationRequiredException.java
@@ -20,4 +20,6 @@
 
 package org.apache.james.managesieve.api;
 
-public class AuthenticationRequiredException extends ManageSieveException {}
\ No newline at end of file
+public class AuthenticationRequiredException extends ManageSieveException {
+
+}
\ No newline at end of file
diff --git a/server/container/guice/mailbox/src/test/java/org/apache/james/modules/mailbox/NoopMailboxListener.java
b/server/container/guice/mailbox/src/test/java/org/apache/james/modules/mailbox/NoopMailboxListener.java
index 2ef25e4..9423d53 100644
--- a/server/container/guice/mailbox/src/test/java/org/apache/james/modules/mailbox/NoopMailboxListener.java
+++ b/server/container/guice/mailbox/src/test/java/org/apache/james/modules/mailbox/NoopMailboxListener.java
@@ -23,7 +23,9 @@ import org.apache.james.mailbox.events.Group;
 import org.apache.james.mailbox.events.MailboxListener;
 
 public class NoopMailboxListener implements MailboxListener.GroupMailboxListener {
-    public static class NoopMailboxListenerGroup extends Group {}
+    public static class NoopMailboxListenerGroup extends Group {
+
+    }
 
     static final Group GROUP = new NoopMailboxListenerGroup();
 
diff --git a/server/container/guice/memory-guice/src/main/java/org/apache/james/FakeMessageSearchIndex.java
b/server/container/guice/memory-guice/src/main/java/org/apache/james/FakeMessageSearchIndex.java
index c42d956..b17dab3 100644
--- a/server/container/guice/memory-guice/src/main/java/org/apache/james/FakeMessageSearchIndex.java
+++ b/server/container/guice/memory-guice/src/main/java/org/apache/james/FakeMessageSearchIndex.java
@@ -39,7 +39,9 @@ import org.apache.james.mailbox.store.mail.model.MailboxMessage;
 import org.apache.james.mailbox.store.search.ListeningMessageSearchIndex;
 
 public class FakeMessageSearchIndex extends ListeningMessageSearchIndex {
-    private static class FakeMessageSearchIndexGroup extends Group {}
+    private static class FakeMessageSearchIndexGroup extends Group {
+
+    }
 
     private static final FakeMessageSearchIndexGroup GROUP = new FakeMessageSearchIndexGroup();
 
diff --git a/server/container/util/src/main/java/org/apache/james/util/MDCBuilder.java b/server/container/util/src/main/java/org/apache/james/util/MDCBuilder.java
index e6709c8..bac3b4b 100644
--- a/server/container/util/src/main/java/org/apache/james/util/MDCBuilder.java
+++ b/server/container/util/src/main/java/org/apache/james/util/MDCBuilder.java
@@ -101,7 +101,9 @@ public class MDCBuilder {
     private final ImmutableMap.Builder<String, String> contextMap = ImmutableMap.builder();
     private final ImmutableList.Builder<MDCBuilder> nestedBuilder = ImmutableList.builder();
 
-    private MDCBuilder() {}
+    private MDCBuilder() {
+
+    }
 
     public MDCBuilder addContext(MDCBuilder nested) {
         this.nestedBuilder.add(nested);
diff --git a/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/jsieve/SieveMailAdapter.java
b/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/jsieve/SieveMailAdapter.java
index 0eafe2e..03a4a66 100644
--- a/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/jsieve/SieveMailAdapter.java
+++ b/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/jsieve/SieveMailAdapter.java
@@ -419,5 +419,7 @@ public class SieveMailAdapter implements MailAdapter, EnvelopeAccessors,
ActionC
     }
 
     @Override
-    public void setContext(SieveContext context) {}
+    public void setContext(SieveContext context) {
+
+    }
 }
diff --git a/server/protocols/jmap/src/main/java/org/apache/james/jmap/JMAPConfiguration.java
b/server/protocols/jmap/src/main/java/org/apache/james/jmap/JMAPConfiguration.java
index 3117929..cc4b323 100644
--- a/server/protocols/jmap/src/main/java/org/apache/james/jmap/JMAPConfiguration.java
+++ b/server/protocols/jmap/src/main/java/org/apache/james/jmap/JMAPConfiguration.java
@@ -37,7 +37,9 @@ public class JMAPConfiguration {
         private Optional<String> jwtPublicKeyPem = Optional.empty();
         private Optional<Integer> port = Optional.empty();
 
-        private Builder() {}
+        private Builder() {
+
+        }
 
         public Builder keystore(String keystore) {
             this.keystore = keystore;
diff --git a/server/protocols/jmap/src/main/java/org/apache/james/jmap/event/PropagateLookupRightListener.java
b/server/protocols/jmap/src/main/java/org/apache/james/jmap/event/PropagateLookupRightListener.java
index 96ee12d..cf9a51e 100644
--- a/server/protocols/jmap/src/main/java/org/apache/james/jmap/event/PropagateLookupRightListener.java
+++ b/server/protocols/jmap/src/main/java/org/apache/james/jmap/event/PropagateLookupRightListener.java
@@ -39,7 +39,9 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 public class PropagateLookupRightListener implements MailboxListener.GroupMailboxListener
{
-    public static class PropagateLookupRightListenerGroup extends Group {}
+    public static class PropagateLookupRightListenerGroup extends Group {
+
+    }
 
     private static final Logger LOGGER = LoggerFactory.getLogger(PropagateLookupRightListener.class);
     private static final Group GROUP = new PropagateLookupRightListenerGroup();
diff --git a/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/AccessTokenRequest.java
b/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/AccessTokenRequest.java
index 64d1b97..92a1ba5 100644
--- a/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/AccessTokenRequest.java
+++ b/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/AccessTokenRequest.java
@@ -39,7 +39,9 @@ public class AccessTokenRequest {
         private String method;
         private String password;
 
-        private Builder() {}
+        private Builder() {
+
+        }
 
         public Builder token(String token) throws MalformedContinuationTokenException {
             this.token = ContinuationToken.fromString(token);
diff --git a/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/AccessTokenResponse.java
b/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/AccessTokenResponse.java
index b567d5d..77a682d 100644
--- a/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/AccessTokenResponse.java
+++ b/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/AccessTokenResponse.java
@@ -33,7 +33,9 @@ public class AccessTokenResponse {
         private String upload;
         private String download;
 
-        private Builder() {}
+        private Builder() {
+
+        }
 
         public Builder accessToken(AccessToken accessToken) {
             this.accessToken = accessToken;
diff --git a/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/AttachmentAccessToken.java
b/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/AttachmentAccessToken.java
index 2188b1e..053dc05 100644
--- a/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/AttachmentAccessToken.java
+++ b/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/AttachmentAccessToken.java
@@ -59,7 +59,9 @@ public class AttachmentAccessToken implements SignedExpiringToken {
         private ZonedDateTime expirationDate;
         private String signature;
 
-        private Builder() {}
+        private Builder() {
+
+        }
         
         public Builder blobId(String blobId) {
             this.blobId = blobId;
diff --git a/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/ContinuationToken.java
b/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/ContinuationToken.java
index 829fb08..7a5218e 100644
--- a/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/ContinuationToken.java
+++ b/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/ContinuationToken.java
@@ -47,7 +47,9 @@ public class ContinuationToken implements SignedExpiringToken {
         private ZonedDateTime expirationDate;
         private String signature;
 
-        private Builder() {}
+        private Builder() {
+
+        }
         
         public Builder username(String username) {
             this.username = username;
diff --git a/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/ContinuationTokenRequest.java
b/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/ContinuationTokenRequest.java
index 17f6937..2dbbafe 100644
--- a/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/ContinuationTokenRequest.java
+++ b/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/ContinuationTokenRequest.java
@@ -38,7 +38,9 @@ public class ContinuationTokenRequest {
         private String clientVersion;
         private String deviceName;
 
-        private Builder() {}
+        private Builder() {
+
+        }
 
         public Builder username(String username) {
             this.username = username;
diff --git a/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/ContinuationTokenResponse.java
b/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/ContinuationTokenResponse.java
index 32f75b2..35b42c4 100644
--- a/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/ContinuationTokenResponse.java
+++ b/server/protocols/jmap/src/main/java/org/apache/james/jmap/model/ContinuationTokenResponse.java
@@ -51,7 +51,9 @@ public class ContinuationTokenResponse {
         private ImmutableList<AuthenticationMethod> methods;
         private String prompt;
 
-        private Builder() {}
+        private Builder() {
+
+        }
 
         public Builder continuationToken(ContinuationToken continuationToken) {
             this.continuationToken = continuationToken.serialize();
diff --git a/server/protocols/webadmin-integration-test/src/test/java/org/apache/james/webadmin/integration/EventDeadLettersIntegrationTest.java
b/server/protocols/webadmin-integration-test/src/test/java/org/apache/james/webadmin/integration/EventDeadLettersIntegrationTest.java
index 1b15988..082e3d7 100644
--- a/server/protocols/webadmin-integration-test/src/test/java/org/apache/james/webadmin/integration/EventDeadLettersIntegrationTest.java
+++ b/server/protocols/webadmin-integration-test/src/test/java/org/apache/james/webadmin/integration/EventDeadLettersIntegrationTest.java
@@ -65,7 +65,9 @@ import io.restassured.http.ContentType;
 
 public class EventDeadLettersIntegrationTest {
 
-    public static class RetryEventsListenerGroup extends Group {}
+    public static class RetryEventsListenerGroup extends Group {
+
+    }
 
     public static class RetryEventsListener implements MailboxListener.GroupMailboxListener
{
         static final Group GROUP = new RetryEventsListenerGroup();
diff --git a/server/queue/queue-memory/src/main/java/org/apache/james/queue/memory/MemoryMailQueueFactory.java
b/server/queue/queue-memory/src/main/java/org/apache/james/queue/memory/MemoryMailQueueFactory.java
index 803929c..b012f7f 100644
--- a/server/queue/queue-memory/src/main/java/org/apache/james/queue/memory/MemoryMailQueueFactory.java
+++ b/server/queue/queue-memory/src/main/java/org/apache/james/queue/memory/MemoryMailQueueFactory.java
@@ -218,7 +218,9 @@ public class MemoryMailQueueFactory implements MailQueueFactory<ManageableMailQu
 
             return new MailQueueIterator() {
                 @Override
-                public void close() {}
+                public void close() {
+
+                }
 
                 @Override
                 public boolean hasNext() {
diff --git a/server/queue/queue-rabbitmq/src/main/java/org/apache/james/queue/rabbitmq/view/cassandra/CassandraMailQueueBrowser.java
b/server/queue/queue-rabbitmq/src/main/java/org/apache/james/queue/rabbitmq/view/cassandra/CassandraMailQueueBrowser.java
index b5a5d7f..166d956 100644
--- a/server/queue/queue-rabbitmq/src/main/java/org/apache/james/queue/rabbitmq/view/cassandra/CassandraMailQueueBrowser.java
+++ b/server/queue/queue-rabbitmq/src/main/java/org/apache/james/queue/rabbitmq/view/cassandra/CassandraMailQueueBrowser.java
@@ -62,7 +62,9 @@ public class CassandraMailQueueBrowser {
         }
 
         @Override
-        public void close() {}
+        public void close() {
+
+        }
 
         @Override
         public boolean hasNext() {


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