bookkeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From si...@apache.org
Subject [bookkeeper] branch master updated: ISSUE #537: Compilation warning on unchecked cast
Date Wed, 04 Oct 2017 07:30:58 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 758cdeb  ISSUE #537: Compilation warning on unchecked cast
758cdeb is described below

commit 758cdebb655bb68f7fd8017d289ce66ba9072e3e
Author: Sijie Guo <sijie@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 <sijie@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" <commits@bookkeeper.apache.org>'].

Mime
View raw message