aboutsummaryrefslogtreecommitdiffstats
path: root/container-core
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@vespa.ai>2023-10-18 14:48:42 +0200
committerJon Bratseth <bratseth@vespa.ai>2023-10-18 14:48:42 +0200
commite2fc2d05193e20224cedd20f277cb6e1c253cefb (patch)
tree7a9e501b33321aa10bc6e6865a887963f7200bf9 /container-core
parent771b853b8a0b13a476854eed4e98317d02232ebc (diff)
Non-functional changes only
Diffstat (limited to 'container-core')
-rw-r--r--container-core/src/main/java/com/yahoo/container/jdisc/state/StateHandler.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/container-core/src/main/java/com/yahoo/container/jdisc/state/StateHandler.java b/container-core/src/main/java/com/yahoo/container/jdisc/state/StateHandler.java
index da730dc9acc..045b13e5d63 100644
--- a/container-core/src/main/java/com/yahoo/container/jdisc/state/StateHandler.java
+++ b/container-core/src/main/java/com/yahoo/container/jdisc/state/StateHandler.java
@@ -131,12 +131,12 @@ public class StateHandler extends AbstractRequestHandler implements CapabilityRe
try {
String suffix = resolvePath(requestUri);
return switch (suffix) {
- case "" -> ByteBuffer.wrap(apiLinks(requestUri));
- case CONFIG_GENERATION_PATH -> ByteBuffer.wrap(toPrettyString(config));
- case HISTOGRAMS_PATH -> ByteBuffer.wrap(buildHistogramsOutput());
- case HEALTH_PATH, METRICS_PATH -> ByteBuffer.wrap(buildMetricOutput(suffix));
- case VERSION_PATH -> ByteBuffer.wrap(buildVersionOutput());
- default -> ByteBuffer.wrap(buildMetricOutput(suffix)); // XXX should possibly do something else here
+ case "" -> ByteBuffer.wrap(apiLinks(requestUri));
+ case CONFIG_GENERATION_PATH -> ByteBuffer.wrap(toPrettyString(config));
+ case HISTOGRAMS_PATH -> ByteBuffer.wrap(buildHistogramsOutput());
+ case HEALTH_PATH, METRICS_PATH -> ByteBuffer.wrap(buildMetricOutput(suffix));
+ case VERSION_PATH -> ByteBuffer.wrap(buildVersionOutput());
+ default -> ByteBuffer.wrap(buildMetricOutput(suffix)); // XXX should possibly do something else here
};
} catch (JsonProcessingException e) {
throw new RuntimeException("Bad JSON construction", e);