From 02ae85611ac72a31afdf30ef62ca39db47486ca4 Mon Sep 17 00:00:00 2001 From: Martha King Date: Wed, 8 Jan 2025 14:51:03 +0000 Subject: [PATCH] fix tests --- .../org/enso/table/data/column/storage/StringStorage.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/std-bits/table/src/main/java/org/enso/table/data/column/storage/StringStorage.java b/std-bits/table/src/main/java/org/enso/table/data/column/storage/StringStorage.java index 41c7b3cc5600..65a074882021 100644 --- a/std-bits/table/src/main/java/org/enso/table/data/column/storage/StringStorage.java +++ b/std-bits/table/src/main/java/org/enso/table/data/column/storage/StringStorage.java @@ -4,6 +4,7 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; + import org.enso.base.CompareException; import org.enso.base.Text_Utils; import org.enso.table.data.column.operation.CountUntrimmed; @@ -88,13 +89,13 @@ public Long cachedUntrimmedCount() throws InterruptedException { } /** - * Counts the number of cells in the columns with whitespace. If the calculation fails then it + * Counts the number of cells in the columns with non trivial whitespace. If the calculation fails then it * returns null. * * @return the number of cells with whitespace */ public Long cachedWhitespaceCount() throws InterruptedException { - if (untrimmedCount.isCancelled()) { + if (whitespaceCount.isCancelled()) { // Need to recompute the value, as was cancelled. whitespaceCount = CompletableFuture.completedFuture( @@ -103,7 +104,7 @@ public Long cachedWhitespaceCount() throws InterruptedException { } try { - return untrimmedCount.get(); + return whitespaceCount.get(); } catch (ExecutionException e) { LOGGER.error("Failed to compute non trivial whitespace count", e); return null;