From 57bf053dc981e68202c7bc1037a7ec09f31210d7 Mon Sep 17 00:00:00 2001 From: Clint Wylie Date: Tue, 3 Sep 2024 20:04:30 -0700 Subject: [PATCH] remove compiler warnings about unqualified calls to yield() (#16995) --- .../org/apache/druid/common/guava/CombiningSequenceTest.java | 2 +- .../java/org/apache/druid/common/guava/ComplexSequenceTest.java | 2 +- .../apache/druid/java/util/common/guava/ConcatSequenceTest.java | 2 +- .../druid/java/util/common/guava/LimitedSequenceTest.java | 2 +- .../apache/druid/java/util/common/guava/SequenceTestHelper.java | 2 +- .../druid/java/util/common/guava/SkippingSequenceTest.java | 2 +- .../apache/druid/query/aggregation/AggregationTestHelper.java | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/processing/src/test/java/org/apache/druid/common/guava/CombiningSequenceTest.java b/processing/src/test/java/org/apache/druid/common/guava/CombiningSequenceTest.java index 7c97e364828..437c3825170 100644 --- a/processing/src/test/java/org/apache/druid/common/guava/CombiningSequenceTest.java +++ b/processing/src/test/java/org/apache/druid/common/guava/CombiningSequenceTest.java @@ -294,7 +294,7 @@ public class CombiningSequenceTest { count++; if (count % yieldEvery == 0) { - yield(); + this.yield(); } return rhs; } diff --git a/processing/src/test/java/org/apache/druid/common/guava/ComplexSequenceTest.java b/processing/src/test/java/org/apache/druid/common/guava/ComplexSequenceTest.java index ba5504f25cf..bf1099ccc0f 100644 --- a/processing/src/test/java/org/apache/druid/common/guava/ComplexSequenceTest.java +++ b/processing/src/test/java/org/apache/druid/common/guava/ComplexSequenceTest.java @@ -71,7 +71,7 @@ public class ComplexSequenceTest @Override public Integer accumulate(Integer accumulated, Integer in) { - yield(); + this.yield(); return in; } } diff --git a/processing/src/test/java/org/apache/druid/java/util/common/guava/ConcatSequenceTest.java b/processing/src/test/java/org/apache/druid/java/util/common/guava/ConcatSequenceTest.java index cf5cabe99a8..477357e0792 100644 --- a/processing/src/test/java/org/apache/druid/java/util/common/guava/ConcatSequenceTest.java +++ b/processing/src/test/java/org/apache/druid/java/util/common/guava/ConcatSequenceTest.java @@ -263,7 +263,7 @@ public class ConcatSequenceTest @Override public Integer accumulate(Integer accumulated, Integer in) { - yield(); + this.yield(); return in; } } diff --git a/processing/src/test/java/org/apache/druid/java/util/common/guava/LimitedSequenceTest.java b/processing/src/test/java/org/apache/druid/java/util/common/guava/LimitedSequenceTest.java index 9ea8b75aa31..d26a950bdd7 100644 --- a/processing/src/test/java/org/apache/druid/java/util/common/guava/LimitedSequenceTest.java +++ b/processing/src/test/java/org/apache/druid/java/util/common/guava/LimitedSequenceTest.java @@ -104,7 +104,7 @@ public class LimitedSequenceTest public OutType accumulate(OutType accumulated, Integer in) { final OutType retVal = super.accumulate(accumulated, in); - yield(); + this.yield(); return retVal; } } diff --git a/processing/src/test/java/org/apache/druid/java/util/common/guava/SequenceTestHelper.java b/processing/src/test/java/org/apache/druid/java/util/common/guava/SequenceTestHelper.java index f8a3798954f..afbb960e00a 100644 --- a/processing/src/test/java/org/apache/druid/java/util/common/guava/SequenceTestHelper.java +++ b/processing/src/test/java/org/apache/druid/java/util/common/guava/SequenceTestHelper.java @@ -65,7 +65,7 @@ public class SequenceTestHelper { if (++count >= numToTake) { count = 0; - yield(); + this.yield(); } Assert.assertEquals(prefix, valsIter.next(), in); diff --git a/processing/src/test/java/org/apache/druid/java/util/common/guava/SkippingSequenceTest.java b/processing/src/test/java/org/apache/druid/java/util/common/guava/SkippingSequenceTest.java index 0253794fd03..2b299d0b79b 100644 --- a/processing/src/test/java/org/apache/druid/java/util/common/guava/SkippingSequenceTest.java +++ b/processing/src/test/java/org/apache/druid/java/util/common/guava/SkippingSequenceTest.java @@ -110,7 +110,7 @@ public class SkippingSequenceTest public OutType accumulate(OutType accumulated, Integer in) { final OutType retVal = super.accumulate(accumulated, in); - yield(); + this.yield(); return retVal; } } diff --git a/processing/src/test/java/org/apache/druid/query/aggregation/AggregationTestHelper.java b/processing/src/test/java/org/apache/druid/query/aggregation/AggregationTestHelper.java index e21b185d5cd..c1d643d519e 100644 --- a/processing/src/test/java/org/apache/druid/query/aggregation/AggregationTestHelper.java +++ b/processing/src/test/java/org/apache/druid/query/aggregation/AggregationTestHelper.java @@ -757,7 +757,7 @@ public class AggregationTestHelper implements Closeable @Override public Object accumulate(Object accumulated, Object in) { - yield(); + this.yield(); return in; } }