diff options
| author | Kristen Kozak <sebright@google.com> | 2017-11-13 19:05:17 -0800 |
|---|---|---|
| committer | Kristen Kozak <sebright@google.com> | 2017-11-13 19:54:33 -0800 |
| commit | e086f07b5708ad1ffddbc186cf7965a21e852ba7 (patch) | |
| tree | 285741c24e308460fa61d8dc778c8c6419b9edf6 /api | |
| parent | d80e6de38c6959aac5736634ca3950101b3392bd (diff) | |
| download | platform_external_opencensus-java-e086f07b5708ad1ffddbc186cf7965a21e852ba7.tar.gz platform_external_opencensus-java-e086f07b5708ad1ffddbc186cf7965a21e852ba7.tar.bz2 platform_external_opencensus-java-e086f07b5708ad1ffddbc186cf7965a21e852ba7.zip | |
Update lists of enabled Error Prone warnings with the latest bug patterns.
I used the latest list of bug patterns from http://errorprone.info/bugpatterns.
I had to turn off FieldMissingNullable because of an Error Prone bug and
suppress two instances of other warnings in the code.
I removed NonRuntimeAnnotation and ProtocolBufferOrdinal from the list because
they were promoted to errors. I also enabled two previously disabled warnings
because they seemed to no longer cause any problems in this project.
Diffstat (limited to 'api')
| -rw-r--r-- | api/src/test/java/io/opencensus/tags/TagContextTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/api/src/test/java/io/opencensus/tags/TagContextTest.java b/api/src/test/java/io/opencensus/tags/TagContextTest.java index 7243720c..b5c44b15 100644 --- a/api/src/test/java/io/opencensus/tags/TagContextTest.java +++ b/api/src/test/java/io/opencensus/tags/TagContextTest.java @@ -86,6 +86,9 @@ public final class TagContextTest { private static final class SimpleTagContext extends TagContext { private final List<Tag> tags; + // This Error Prone warning doesn't seem correct, because the constructor is just calling + // another constructor. + @SuppressWarnings("ConstructorLeaksThis") SimpleTagContext(Tag... tags) { this(Lists.newArrayList(tags)); } |
