aboutsummaryrefslogtreecommitdiffstats
path: root/src/site/findbugs/exclude.xml
blob: efa391c5a51389cc999ff033afcc21ef662af7aa (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
38
39
40
41
<FindBugsFilter>

  <!-- General stuff we don't care about -->
  <Match>
    <Bug pattern="EI_EXPOSE_REP,EI_EXPOSE_REP2,ICAST_QUESTIONABLE_UNSIGNED_RIGHT_SHIFT"/>
  </Match>

  <!-- Convenience catch for a variety of exceptions -->
  <Match>
    <Class name="com.healthmarketscience.jackcess.DataType"/>
    <Method name="addNewSqlType"/>
    <Bug pattern="REC_CATCH_EXCEPTION"/>
  </Match>

  <!-- Debug code -->
  <Match>
    <Class name="com.healthmarketscience.jackcess.impl.ByteUtil"/>
    <Method name="toHexFile"/>
    <Bug pattern="DM_DEFAULT_ENCODING"/>
  </Match>

  <!-- Streams kept open on purpose -->
  <Match>
    <Class name="com.healthmarketscience.jackcess.util.OleBlob$Builder"/>
    <Bug pattern="OBL_UNSATISFIED_OBLIGATION"/>
  </Match>

  <!-- Utility code which uses FileWriter/FileReader -->
  <Match>
    <Class name="com.healthmarketscience.jackcess.util.ImportUtil"/>
    <Method name="importFile"/>
    <Bug pattern="DM_DEFAULT_ENCODING"/>
  </Match>
  <Match>
    <Class name="com.healthmarketscience.jackcess.util.ExportUtil"/>
    <Method name="exportFile"/>
    <Bug pattern="DM_DEFAULT_ENCODING"/>
  </Match>


</FindBugsFilter>