This is an automated email from the ASF dual-hosted git repository.
dimas pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new 6728e03ca chore: Suppress unchecked case from mock (#3322)
6728e03ca is described below
commit 6728e03cad2658acf3fc746b50ea2a9fb0f80e95
Author: Dmitri Bourlatchkov <[email protected]>
AuthorDate: Mon Jan 5 11:01:57 2026 -0500
chore: Suppress unchecked case from mock (#3322)
This is to fix javac `warning: [unchecked] unchecked conversion
TriConsumer<String, TableIdentifier, MetricsReport> mockConsumer =
mock(TriConsumer.class);`
---
.../org/apache/polaris/service/reporting/DefaultMetricsReporterTest.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/runtime/service/src/test/java/org/apache/polaris/service/reporting/DefaultMetricsReporterTest.java
b/runtime/service/src/test/java/org/apache/polaris/service/reporting/DefaultMetricsReporterTest.java
index a8b214683..dfdde0f3e 100644
---
a/runtime/service/src/test/java/org/apache/polaris/service/reporting/DefaultMetricsReporterTest.java
+++
b/runtime/service/src/test/java/org/apache/polaris/service/reporting/DefaultMetricsReporterTest.java
@@ -30,6 +30,7 @@ public class DefaultMetricsReporterTest {
@Test
void testLogging() {
+ @SuppressWarnings("unchecked")
TriConsumer<String, TableIdentifier, MetricsReport> mockConsumer =
mock(TriConsumer.class);
DefaultMetricsReporter reporter = new DefaultMetricsReporter(mockConsumer);
String warehouse = "testWarehouse";