james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adup...@apache.org
Subject [3/5] james-project git commit: Fix checkstyle/Eclipse warnings
Date Wed, 05 Sep 2018 09:49:46 GMT
Fix checkstyle/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/1dd5eff9
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/1dd5eff9
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/1dd5eff9

Branch: refs/heads/master
Commit: 1dd5eff94f6260d5fd7e7b1abe2611e30c674742
Parents: ff0ff10
Author: Raphael Ouazana <raphael.ouazana@linagora.com>
Authored: Tue Sep 4 15:37:04 2018 +0200
Committer: Antoine Duprat <aduprat@linagora.com>
Committed: Wed Sep 5 11:48:34 2018 +0200

----------------------------------------------------------------------
 .../org/apache/james/blob/cassandra/CassandraBlobsDAOTest.java   | 2 +-
 .../james/blob/objectstorage/DockerSwiftTempAuthExtension.java   | 4 ++--
 .../util/src/main/java/org/apache/james/util/StreamUtils.java    | 1 +
 3 files changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/1dd5eff9/server/blob/blob-cassandra/src/test/java/org/apache/james/blob/cassandra/CassandraBlobsDAOTest.java
----------------------------------------------------------------------
diff --git a/server/blob/blob-cassandra/src/test/java/org/apache/james/blob/cassandra/CassandraBlobsDAOTest.java
b/server/blob/blob-cassandra/src/test/java/org/apache/james/blob/cassandra/CassandraBlobsDAOTest.java
index b50794c..898d825 100644
--- a/server/blob/blob-cassandra/src/test/java/org/apache/james/blob/cassandra/CassandraBlobsDAOTest.java
+++ b/server/blob/blob-cassandra/src/test/java/org/apache/james/blob/cassandra/CassandraBlobsDAOTest.java
@@ -29,9 +29,9 @@ import org.apache.james.backends.cassandra.DockerCassandraExtension;
 import org.apache.james.backends.cassandra.DockerCassandraExtension.DockerCassandra;
 import org.apache.james.backends.cassandra.init.configuration.CassandraConfiguration;
 import org.apache.james.blob.api.BlobId;
-import org.apache.james.blob.api.HashBlobId;
 import org.apache.james.blob.api.BlobStore;
 import org.apache.james.blob.api.BlobStoreContract;
+import org.apache.james.blob.api.HashBlobId;
 import org.junit.jupiter.api.AfterAll;
 import org.junit.jupiter.api.AfterEach;
 import org.junit.jupiter.api.BeforeAll;

http://git-wip-us.apache.org/repos/asf/james-project/blob/1dd5eff9/server/blob/blob-objectstorage/src/test/java/org/apache/james/blob/objectstorage/DockerSwiftTempAuthExtension.java
----------------------------------------------------------------------
diff --git a/server/blob/blob-objectstorage/src/test/java/org/apache/james/blob/objectstorage/DockerSwiftTempAuthExtension.java
b/server/blob/blob-objectstorage/src/test/java/org/apache/james/blob/objectstorage/DockerSwiftTempAuthExtension.java
index 9bc31ee..4d2c716 100644
--- a/server/blob/blob-objectstorage/src/test/java/org/apache/james/blob/objectstorage/DockerSwiftTempAuthExtension.java
+++ b/server/blob/blob-objectstorage/src/test/java/org/apache/james/blob/objectstorage/DockerSwiftTempAuthExtension.java
@@ -31,8 +31,8 @@ import org.testcontainers.containers.GenericContainer;
 
 class DockerSwiftTempAuthExtension implements ParameterResolver, BeforeAllCallback, AfterAllCallback
{
     public static final int SWIFT_PORT = 8080;
-    private static GenericContainer swiftContainer =
-        new GenericContainer("bouncestorage/swift-aio:ea10837d")
+    private static GenericContainer<?> swiftContainer =
+        new GenericContainer<>("bouncestorage/swift-aio:ea10837d")
             .withExposedPorts(SWIFT_PORT);
     private DockerSwift dockerSwift;
 

http://git-wip-us.apache.org/repos/asf/james-project/blob/1dd5eff9/server/container/util/src/main/java/org/apache/james/util/StreamUtils.java
----------------------------------------------------------------------
diff --git a/server/container/util/src/main/java/org/apache/james/util/StreamUtils.java b/server/container/util/src/main/java/org/apache/james/util/StreamUtils.java
index 4f3df3f..ccdffd2 100644
--- a/server/container/util/src/main/java/org/apache/james/util/StreamUtils.java
+++ b/server/container/util/src/main/java/org/apache/james/util/StreamUtils.java
@@ -27,6 +27,7 @@ import java.util.stream.Stream;
 
 public class StreamUtils {
 
+    @SafeVarargs
     public static <T> Stream<T> ofNullables(T... array) {
         return ofNullable(array);
     }


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