diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2021-02-02 13:44:02 +0100 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2021-02-03 09:54:15 +0100 |
commit | acac0d16552e4298092e98ccfc32f7f325b8a021 (patch) | |
tree | aaf1b20856619947f7a4d0194680062e745a537f /vespaclient-container-plugin | |
parent | 367a937a4169f5a39e8b1b94e014baf02eceb005 (diff) |
Nonfunctional changes, remove unused code
Diffstat (limited to 'vespaclient-container-plugin')
-rw-r--r-- | vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/DocumentV1ApiHandler.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/DocumentV1ApiHandler.java b/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/DocumentV1ApiHandler.java index 1fefe2e0c7e..9fd97f0c9f3 100644 --- a/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/DocumentV1ApiHandler.java +++ b/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/DocumentV1ApiHandler.java @@ -628,7 +628,7 @@ public class DocumentV1ApiHandler extends AbstractRequestHandler { } } - // ---------------------------------------------Document Operations ---------------------------------------- + // -------------------------------------------- Document Operations ---------------------------------------- private static abstract class Operation { @@ -644,7 +644,7 @@ public class DocumentV1ApiHandler extends AbstractRequestHandler { /** * Attempts to dispatch this operation to the document API, and returns whether this completed or not. - * This return {@code} true if dispatch was successful, or if it failed fatally; or {@code false} if + * Returns {@code} true if dispatch was successful, or if it failed fatally; or {@code false} if * dispatch should be retried at a later time. */ boolean dispatch() { @@ -676,7 +676,7 @@ public class DocumentV1ApiHandler extends AbstractRequestHandler { } - /** Attempts to send the given document operation, returning false if thes needs to be retried. */ + /** Attempts to send the given document operation, returning false if this needs to be retried. */ private static boolean dispatchOperation(Supplier<Result> documentOperation) { Result result = documentOperation.get(); if (result.type() == Result.ResultType.TRANSIENT_ERROR) @@ -889,6 +889,7 @@ public class DocumentV1ApiHandler extends AbstractRequestHandler { // ------------------------------------------------ Helpers ------------------------------------------------ + /** Returns the last property with the given name, if present, or throws if this is empty or blank. */ private static Optional<String> getProperty(HttpRequest request, String name) { if ( ! request.parameters().containsKey(name)) return Optional.empty(); |