<?xml version="1.0" encoding="UTF-8"?>

<FindBugsFilter xmlns="http://findbugs.sourceforge.net/filter/3.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://findbugs.sourceforge.net/filter/3.0.0 https://findbugs.googlecode.com/git/findbugs/etc/findbugsfilter.xsd">

  <Match>
    <Bug pattern="DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED,NM_CLASS_NOT_EXCEPTION,EI_EXPOSE_REP,EI_EXPOSE_REP2,MS_PKGPROTECT,MS_MUTABLE_ARRAY"/>
  </Match>
  <Match>
    <Bug category="MALICIOUS_CODE"/>
  </Match>
  <Match>
    <Bug pattern="EI_EXPOSE_REP"/>
  </Match>
  <Match>
    <Bug pattern="EI_EXPOSE_REP2"/>
  </Match>
  <Match>
    <Bug pattern="SE_BAD_FIELD"/>
  </Match>
  <Match>
    <Bug pattern="DM_EXIT"/>
  </Match>
  <Match>
    <BugCode name="Se"/>
    <Class name="~edu.umd.cs.findbugs.gui.*"/>
  </Match>
  <Match>
    <Class name="~edu.umd.cs.findbugs.*Test"/>
  </Match>

  <Match>
    <Or>
        <BugCode name="Se"/>
        <Bug pattern="SE_NO_SERIALVERSIONID"/>
    </Or>
    <Class name="~edu.umd.cs.findbugs.gui2.*"/>
  </Match>

  <Match>
    <Class name="edu.umd.cs.findbugs.ba.DFSEdgeTypes" />
    <Bug pattern="NM_SAME_SIMPLE_NAME_AS_INTERFACE" />
  </Match>
  <Match>
    <Class name="edu.umd.cs.findbugs.ba.DepthFirstSearch" />
    <Bug pattern="NM_SAME_SIMPLE_NAME_AS_SUPERCLASS" />
  </Match>
  <Match>
    <Class name="edu.umd.cs.findbugs.ba.ReverseDepthFirstSearch" />
    <Bug pattern="NM_SAME_SIMPLE_NAME_AS_SUPERCLASS" />
  </Match>

   <Match>
   <And>
    <Priority value="3"/>
    <Or>
        <Bug pattern="DM_CONVERT_CASE"/>
        <Bug pattern="SE_COMPARATOR_SHOULD_BE_SERIALIZABLE"/>
        <Bug pattern="SE_NO_SERIALVERSIONID" />
        <Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD"/>
        <Bug pattern="SIC_INNER_SHOULD_BE_STATIC_ANON" />
        <Bug pattern="BC_UNCONFIRMED_CAST_OF_RETURN_VALUE" />
        <Bug pattern="BC_UNCONFIRMED_CAST" />
        <Bug pattern="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" />
        <Bug pattern="NM_CONFUSING" />
        <Rank value="20"/>
    </Or>
   </And>
  </Match>

</FindBugsFilter>
