aboutsummaryrefslogtreecommitdiff
path: root/findbugs-exclude.xml
blob: bd222a6cd485061d58cf48b7c045c20ae5e7174d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<FindBugsFilter>
  <Match>
    <!-- Reason: Null has a different meaning than a zero-length array in this case. -->
    <Bug pattern="PZLA_PREFER_ZERO_LENGTH_ARRAYS"/>
    <Class name="io.opencensus.stats.MutableDistribution" />
    <Method name="getInternalBucketCountsArray" />
  </Match>
  <Match>
    <!-- Reason: Equal is implemented in the AutoValue generated class. -->
    <Bug pattern="EQ_COMPARETO_USE_OBJECT_EQUALS"/>
    <Class name="io.opencensus.common.Timestamp" />
    <Method name="compareTo" />
  </Match>
  <Match>
    <!-- Reason: Equal is implemented in the AutoValue generated class. -->
    <Bug pattern="EQ_COMPARETO_USE_OBJECT_EQUALS"/>
    <Class name="io.opencensus.common.Duration" />
    <Method name="compareTo" />
  </Match>
  <Match>
    <!-- Reason: BaseMessageEvent only has two visible subclasses. -->
    <Bug pattern="BC_UNCONFIRMED_CAST"/>
    <Class name="io.opencensus.internal.BaseMessageEventUtil" />
  </Match>

  <!-- Suppress all FindBugs warnings about NullPointerExceptions. They are redundant with the -->
  <!-- Checker Framework's warnings, and they sometimes conflict. -->
  <Match>
    <Bug code="NP"/>
  </Match>
  <Match>
    <Bug pattern="UR_UNINIT_READ"/>
  </Match>
  <Match>
    <Bug pattern="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR"/>
  </Match>
</FindBugsFilter>