summaryrefslogtreecommitdiffstats
path: root/hosted-zone-api
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-11-25 11:49:07 +0100
committerJon Bratseth <bratseth@gmail.com>2022-11-25 11:49:07 +0100
commit74888eb3f0d5626575f7008cf357ddeaa746b9a6 (patch)
tree2081558aeb73b856af77b055c4593c25ed0a2986 /hosted-zone-api
parentc671a36ae0cd655c2efc38ee9882baa8354d660b (diff)
Cleanup and throw IllegalArgumentException on invalid path
Diffstat (limited to 'hosted-zone-api')
-rw-r--r--hosted-zone-api/src/main/java/ai/vespa/cloud/Node.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/hosted-zone-api/src/main/java/ai/vespa/cloud/Node.java b/hosted-zone-api/src/main/java/ai/vespa/cloud/Node.java
index f745bc29f1e..06c62957520 100644
--- a/hosted-zone-api/src/main/java/ai/vespa/cloud/Node.java
+++ b/hosted-zone-api/src/main/java/ai/vespa/cloud/Node.java
@@ -16,8 +16,10 @@ public class Node {
this.index = index;
}
- /** Returns the unique index for this node in the cluster.
- * Indices are non-negative, but not necessarily contiguous or starting from zero. */
+ /**
+ * Returns the unique index of this node in the cluster.
+ * Indices are non-negative, but not necessarily contiguous or starting from zero.
+ */
public int index() { return index; }
@Override