Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up unchecked compile warnings #2838

Merged
merged 1 commit into from
Oct 20, 2021
Merged

Conversation

izeye
Copy link
Contributor

@izeye izeye commented Oct 20, 2021

There are the following warnings:

> Task :micrometer-core:compileTestJava
/Users/user/IdeaProjects/micrometer/micrometer-core/src/test/java/io/micrometer/core/instrument/binder/cache/CaffeineCacheMetricsTest.java:41: warning: [unchecked] unchecked call to CaffeineCacheMetrics(C,String,Iterable<Tag>) as a member of the raw type CaffeineCacheMetrics
    private CaffeineCacheMetrics metrics = new CaffeineCacheMetrics(cache, "testCache", expectedTag);
                                           ^
  where C,K,V are type-variables:
    C extends Cache<K,V> declared in class CaffeineCacheMetrics
    K extends Object declared in class CaffeineCacheMetrics
    V extends Object declared in class CaffeineCacheMetrics
/Users/user/IdeaProjects/micrometer/micrometer-core/src/test/java/io/micrometer/core/instrument/binder/cache/CaffeineCacheMetricsTest.java:77: warning: [unchecked] unchecked call to CaffeineCacheMetrics(C,String,Iterable<Tag>) as a member of the raw type CaffeineCacheMetrics
        CaffeineCacheMetrics metrics = new CaffeineCacheMetrics(cache, "testCache", expectedTag);
                                       ^
  where C,K,V are type-variables:
    C extends Cache<K,V> declared in class CaffeineCacheMetrics
    K extends Object declared in class CaffeineCacheMetrics
    V extends Object declared in class CaffeineCacheMetrics
/Users/user/IdeaProjects/micrometer/micrometer-core/src/test/java/io/micrometer/core/instrument/binder/cache/JCacheMetricsTest.java:70: warning: [unchecked] unchecked call to JCacheMetrics(C,Iterable<Tag>) as a member of the raw type JCacheMetrics
        metrics = new JCacheMetrics(cache, expectedTag);
                  ^
  where C,K,V are type-variables:
    C extends Cache<K,V> declared in class JCacheMetrics
    K extends Object declared in class JCacheMetrics
    V extends Object declared in class JCacheMetrics
/Users/user/IdeaProjects/micrometer/micrometer-core/src/test/java/io/micrometer/core/instrument/binder/cache/JCacheMetricsTest.java:151: warning: [unchecked] unchecked call to JCacheMetrics(C,Iterable<Tag>) as a member of the raw type JCacheMetrics
        metrics = new JCacheMetrics(cache, expectedTag);
                  ^
  where C,K,V are type-variables:
    C extends Cache<K,V> declared in class JCacheMetrics
    K extends Object declared in class JCacheMetrics
    V extends Object declared in class JCacheMetrics
/Users/user/IdeaProjects/micrometer/micrometer-core/src/test/java/io/micrometer/core/instrument/binder/cache/JCacheMetricsTest.java:160: warning: [unchecked] unchecked call to JCacheMetrics(C,Iterable<Tag>) as a member of the raw type JCacheMetrics
        metrics = new JCacheMetrics(cache, expectedTag);
                  ^
  where C,K,V are type-variables:
    C extends Cache<K,V> declared in class JCacheMetrics
    K extends Object declared in class JCacheMetrics
    V extends Object declared in class JCacheMetrics
/Users/user/IdeaProjects/micrometer/micrometer-core/src/test/java/io/micrometer/core/instrument/binder/cache/GuavaCacheMetricsTest.java:46: warning: [unchecked] unchecked call to GuavaCacheMetrics(C,String,Iterable<Tag>) as a member of the raw type GuavaCacheMetrics
    private GuavaCacheMetrics metrics = new GuavaCacheMetrics(cache, "testCache", expectedTag);
                                        ^
  where C,K,V are type-variables:
    C extends Cache<K,V> declared in class GuavaCacheMetrics
    K extends Object declared in class GuavaCacheMetrics
    V extends Object declared in class GuavaCacheMetrics
6 warnings

See gh-2643

@shakuzen shakuzen added the polish A general improvement (naming things, fixing minor issues, etc.) label Oct 20, 2021
@shakuzen shakuzen added this to the 1.8.0 milestone Oct 20, 2021
@shakuzen shakuzen added the module: micrometer-core An issue that is related to our core module label Oct 20, 2021
@shakuzen shakuzen merged commit 02c35e4 into micrometer-metrics:1.8.x Oct 20, 2021
@izeye izeye deleted the gh-2643 branch October 20, 2021 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: micrometer-core An issue that is related to our core module polish A general improvement (naming things, fixing minor issues, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants