From 683fbd638a762f871bb84aa33e3f925a0d752a02 Mon Sep 17 00:00:00 2001 From: Vivek Sumanth <61607315+viveksumanth@users.noreply.github.com> Date: Mon, 23 Oct 2023 13:01:46 -0700 Subject: [PATCH] Fix typos in HistogramData.java and HistogramDataTest.java (#29105) --- .../src/main/java/org/apache/beam/sdk/util/HistogramData.java | 4 ++-- .../test/java/org/apache/beam/sdk/util/HistogramDataTest.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdks/java/core/src/main/java/org/apache/beam/sdk/util/HistogramData.java b/sdks/java/core/src/main/java/org/apache/beam/sdk/util/HistogramData.java index cca3a440334e..dd2193d9d335 100644 --- a/sdks/java/core/src/main/java/org/apache/beam/sdk/util/HistogramData.java +++ b/sdks/java/core/src/main/java/org/apache/beam/sdk/util/HistogramData.java @@ -79,7 +79,7 @@ public static HistogramData linear(double start, double width, int numBuckets) { } /** - * Returns a histogram object wiht exponential boundaries. The input parameter {@code scale} + * Returns a histogram object with exponential boundaries. The input parameter {@code scale} * determines a coefficient 'base' which species bucket boundaries. * *
@@ -381,7 +381,7 @@ private int getBucketIndexNegativeScale(int value) { return getBucketIndexZeroScale(value) >> (-getScale()); } - // This method is valid for all 'scale' values but we fallback to more effecient methods for + // This method is valid for all 'scale' values but we fallback to more efficient methods for // non-positive scales. // For a value>base we would like to find an i s.t. : // base^i <= value < base^(i+1) diff --git a/sdks/java/core/src/test/java/org/apache/beam/sdk/util/HistogramDataTest.java b/sdks/java/core/src/test/java/org/apache/beam/sdk/util/HistogramDataTest.java index bfad087ecfa5..133bf787de30 100644 --- a/sdks/java/core/src/test/java/org/apache/beam/sdk/util/HistogramDataTest.java +++ b/sdks/java/core/src/test/java/org/apache/beam/sdk/util/HistogramDataTest.java @@ -205,7 +205,7 @@ public void testIncrementBucketCountByIndex() { // The following tests cover exponential buckets. @Test - public void testExponentialBuckets_PostiveScaleRecord() { + public void testExponentialBuckets_PositiveScaleRecord() { // Buckets will be: // Index Range // Underflow (-inf, 0)