aboutsummaryrefslogtreecommitdiffstats
path: root/api/src
diff options
context:
space:
mode:
authorKristen Kozak <sebright@google.com>2017-11-13 19:05:17 -0800
committerKristen Kozak <sebright@google.com>2017-11-13 19:54:33 -0800
commite086f07b5708ad1ffddbc186cf7965a21e852ba7 (patch)
tree285741c24e308460fa61d8dc778c8c6419b9edf6 /api/src
parentd80e6de38c6959aac5736634ca3950101b3392bd (diff)
downloadplatform_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/src')
-rw-r--r--api/src/test/java/io/opencensus/tags/TagContextTest.java3
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));
}