From d927437401fe3f24e2270fe4bc513fec3b363c51 Mon Sep 17 00:00:00 2001 From: Matthew Davis Date: Sat, 15 Apr 2023 16:45:18 -0400 Subject: [PATCH] switch labeled break for a simple return statement --- .../server/search/aggregation/ordinal/OrdinalBuffer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zulia-server/src/main/java/io/zulia/server/search/aggregation/ordinal/OrdinalBuffer.java b/zulia-server/src/main/java/io/zulia/server/search/aggregation/ordinal/OrdinalBuffer.java index 80f25cae..55b95b01 100644 --- a/zulia-server/src/main/java/io/zulia/server/search/aggregation/ordinal/OrdinalBuffer.java +++ b/zulia-server/src/main/java/io/zulia/server/search/aggregation/ordinal/OrdinalBuffer.java @@ -18,7 +18,7 @@ public void handleFacets(OrdinalConsumer ordinalConsumer) { if (ordinalBuffer.hasRemaining()) { int storedDimOrdinal = -1; int storedOrdinalLengthForDim = 0; - outer: + for (int requestedDimOrdinal : requestDimensionOrdinals) { while (storedDimOrdinal < requestedDimOrdinal) { @@ -27,7 +27,7 @@ public void handleFacets(OrdinalConsumer ordinalConsumer) { } if (!ordinalBuffer.hasRemaining()) { - break outer; + return; } storedDimOrdinal = ordinalBuffer.get();