<?xml version="1.0" encoding="UTF-8"?>
<FindBugsFilter>
    <!-- we're *supposed* to manually GC there -->
    <Match>
        <Class name="io.dropwizard.servlets.tasks.GarbageCollectionTask"/>
        <Method name="execute"/>
        <Bug pattern="DM_GC"/>
    </Match>

    <!-- kind of hard to use exit codes without System.exit -->
    <Match>
        <Class name="io.dropwizard.Application"/>
        <Method name="run"/>
        <Bug pattern="DM_EXIT"/>
    </Match>

    <!-- serialization is boring -->
    <Match>
        <Bug code="Se"/>
        <Class name="io.dropwizard.servlets.tasks.TaskServlet"/>
    </Match>
    <Match>
        <Bug code="Se"/>
        <Class name="io.dropwizard.servlets.assets.AssetServlet"/>
    </Match>

    <!-- pretty sure this is a bug in FindBugs -->
    <Match>
        <Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE"/>
        <Class name="io.dropwizard.configuration.ConfigurationFactory"/>
    </Match>
</FindBugsFilter>

<?xml version="1.0" encoding="UTF-8"?>
<FindBugsFilter>
    <!-- we're *supposed* to manually GC there -->
    <Match>
        <Class name="io.dropwizard.servlets.tasks.GarbageCollectionTask"/>
        <Method name="execute"/>
        <Bug pattern="DM_GC"/>
    </Match>

    <!-- kind of hard to use exit codes without System.exit -->
    <Match>
        <Class name="io.dropwizard.Application"/>
        <Method name="run"/>
        <Bug pattern="DM_EXIT"/>
    </Match>

    <!-- serialization is boring -->
    <Match>
        <Bug code="Se"/>
        <Class name="io.dropwizard.servlets.tasks.TaskServlet"/>
    </Match>
    <Match>
        <Bug code="Se"/>
        <Class name="io.dropwizard.servlets.assets.AssetServlet"/>
    </Match>

    <!-- pretty sure this is a bug in FindBugs -->
    <Match>
        <Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE"/>
        <Class name="io.dropwizard.configuration.ConfigurationFactory"/>
    </Match>

    <!-- exclude the generated code by JMH from the analysis -->
    <Match>
       <Package name="~io\.dropwizard\.benchmarks\..*\.generated"/>
    </Match>

    <Match>
        <Package name="~org\.openjdk\.jmh.*"/>
    </Match>
</FindBugsFilter>

Exclude the code generated by JMH from the FindBugs analysis
Exclude the code generated by JMH from the FindBugs analysis
