Fix 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/2649a5c6 Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/2649a5c6 Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/2649a5c6 Branch: refs/heads/master Commit: 2649a5c6bc3f1b12620ced71fd9f1b9bac8e596f Parents: 3674c00 Author: Raphael Ouazana <[email protected]> Authored: Tue Oct 24 17:59:40 2017 +0200 Committer: Raphael Ouazana <[email protected]> Committed: Wed Oct 25 17:12:11 2017 +0200 ---------------------------------------------------------------------- .../methods/integration/cucumber/DownloadStepdefs.java | 5 ----- .../methods/integration/cucumber/MailboxStepdefs.java | 12 ------------ .../methods/integration/cucumber/UploadStepdefs.java | 2 +- .../jmap/methods/integration/cucumber/UserStepdefs.java | 6 +----- .../java/org/apache/james/utils/IMAPMessageReader.java | 1 - 5 files changed, 2 insertions(+), 24 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/2649a5c6/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/DownloadStepdefs.java ---------------------------------------------------------------------- diff --git a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/DownloadStepdefs.java b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/DownloadStepdefs.java index 6a97810..2cf0ac0 100644 --- a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/DownloadStepdefs.java +++ b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/DownloadStepdefs.java @@ -194,11 +194,6 @@ public class DownloadStepdefs { return request; } - private Request unAuthenticatedDownloadRequest(URIBuilder uriBuilder, String blobId, String username) throws URISyntaxException { - Request request = Request.Get(uriBuilder.build()); - return request; - } - @When("^\"([^\"]*)\" is trusted for attachment \"([^\"]*)\"$") public void attachmentAccessTokenFor(String username, String attachmentId) throws Throwable { userStepdefs.connectUser(username); http://git-wip-us.apache.org/repos/asf/james-project/blob/2649a5c6/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/MailboxStepdefs.java ---------------------------------------------------------------------- diff --git a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/MailboxStepdefs.java b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/MailboxStepdefs.java index ddf7ea5..00b3e40 100644 --- a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/MailboxStepdefs.java +++ b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/MailboxStepdefs.java @@ -19,24 +19,12 @@ package org.apache.james.jmap.methods.integration.cucumber; -import java.util.Collection; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Optional; -import java.util.Set; - import javax.inject.Inject; -import org.apache.james.jmap.api.access.AccessToken; -import org.apache.james.mailbox.exception.UnsupportedRightException; import org.apache.james.mailbox.model.MailboxACL; import org.apache.james.mailbox.model.MailboxConstants; import org.apache.james.mailbox.model.MailboxPath; -import com.github.steveash.guavate.Guavate; - import cucumber.api.java.en.Given; import cucumber.runtime.java.guice.ScenarioScoped; http://git-wip-us.apache.org/repos/asf/james-project/blob/2649a5c6/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/UploadStepdefs.java ---------------------------------------------------------------------- diff --git a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/UploadStepdefs.java b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/UploadStepdefs.java index 7c9fa68..5b54a6e 100644 --- a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/UploadStepdefs.java +++ b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/UploadStepdefs.java @@ -143,7 +143,7 @@ public class UploadStepdefs { @When("^\"([^\"]*)\" checks for the availability of the upload endpoint$") public void optionUpload(String username) throws Throwable { - AccessToken accessToken = userStepdefs.getTokenForUser(username); + userStepdefs.getTokenForUser(username); Request request = Request.Options(uploadUri); response = request.execute().returnResponse(); } http://git-wip-us.apache.org/repos/asf/james-project/blob/2649a5c6/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/UserStepdefs.java ---------------------------------------------------------------------- diff --git a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/UserStepdefs.java b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/UserStepdefs.java index 569d59a..fcb870f 100644 --- a/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/UserStepdefs.java +++ b/server/protocols/jmap-integration-testing/jmap-integration-testing-common/src/test/java/org/apache/james/jmap/methods/integration/cucumber/UserStepdefs.java @@ -28,21 +28,17 @@ import java.util.Set; import javax.inject.Inject; -import com.github.fge.lambdas.runnable.ThrowingRunnable; import org.apache.james.jmap.HttpJmapAuthentication; import org.apache.james.jmap.api.access.AccessToken; -import org.apache.james.mailbox.model.MailboxACL; -import org.apache.james.mailbox.model.MailboxConstants; import com.github.fge.lambdas.Throwing; +import com.github.fge.lambdas.runnable.ThrowingRunnable; import com.google.common.base.Charsets; import com.google.common.base.Preconditions; import com.google.common.hash.Hashing; -import cucumber.api.PendingException; import cucumber.api.java.en.Given; import cucumber.runtime.java.guice.ScenarioScoped; -import org.apache.james.mailbox.model.MailboxPath; @ScenarioScoped public class UserStepdefs { http://git-wip-us.apache.org/repos/asf/james-project/blob/2649a5c6/server/testing/src/main/java/org/apache/james/utils/IMAPMessageReader.java ---------------------------------------------------------------------- diff --git a/server/testing/src/main/java/org/apache/james/utils/IMAPMessageReader.java b/server/testing/src/main/java/org/apache/james/utils/IMAPMessageReader.java index c5317d4..4b28106 100644 --- a/server/testing/src/main/java/org/apache/james/utils/IMAPMessageReader.java +++ b/server/testing/src/main/java/org/apache/james/utils/IMAPMessageReader.java @@ -22,7 +22,6 @@ package org.apache.james.utils; import java.io.Closeable; import java.io.IOException; import java.util.List; -import java.util.function.Predicate; import org.apache.commons.net.imap.IMAPClient; --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
