You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by si...@apache.org on 2017/10/04 07:52:19 UTC

[bookkeeper] 06/06: ISSUE #537: Compilation warning on unchecked cast

This is an automated email from the ASF dual-hosted git repository.

sijie pushed a commit to branch branch-4.5
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git

commit c6ca4ecbf76f6dac7ebcd843a429dbbaaba62420
Author: Sijie Guo <si...@apache.org>
AuthorDate: Wed Oct 4 00:30:49 2017 -0700

    ISSUE #537: Compilation warning on unchecked cast
    
    Descriptions of the changes in this PR:
    
    add `SuppressWarnings("unchecked")` in TestPrometheusMetricsProvider.java
    
    Author: Sijie Guo <si...@apache.org>
    
    Reviewers: Jia Zhai <None>
    
    This closes #538 from sijie/fix_compilation_error, closes #537
---
 .../bookkeeper/stats/prometheus/TestPrometheusMetricsProvider.java       | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bookkeeper-stats-providers/prometheus-metrics-provider/src/test/java/org/apache/bookkeeper/stats/prometheus/TestPrometheusMetricsProvider.java b/bookkeeper-stats-providers/prometheus-metrics-provider/src/test/java/org/apache/bookkeeper/stats/prometheus/TestPrometheusMetricsProvider.java
index c0383f5..e90ccee 100644
--- a/bookkeeper-stats-providers/prometheus-metrics-provider/src/test/java/org/apache/bookkeeper/stats/prometheus/TestPrometheusMetricsProvider.java
+++ b/bookkeeper-stats-providers/prometheus-metrics-provider/src/test/java/org/apache/bookkeeper/stats/prometheus/TestPrometheusMetricsProvider.java
@@ -42,6 +42,7 @@ public class TestPrometheusMetricsProvider {
     }
 
     @Test
+    @SuppressWarnings("unchecked")
     public void testTwoCounters() throws Exception {
         PrometheusCounter counter1 = new PrometheusCounter(registry, "testcounter");
         PrometheusCounter counter2 = new PrometheusCounter(registry, "testcounter");

-- 
To stop receiving notification emails like this one, please contact
"commits@bookkeeper.apache.org" <co...@bookkeeper.apache.org>.