Ich möchte eine FindBugs-Warnung unterdrücken gesehen Fragment
erhalten mit findFragmentByTag(String)
. Dies ist der aktuelle Code:Unterdrücken FindBugs Warnung mit findFragmentByTag
<Match>
<Method name="findFragmentByTag" params="java.lang.String"
returns="android.support.v4.app.Fragment"/>
<Bug pattern="BC_UNCONFIRMED_CAST_OF_RETURN_VALUE"/>
</Match>
I http://findbugs.sourceforge.net/manual/filter.html bin nach), aber es nicht wirklich funktionieren wird. Hat jemand dieses Problem erlebt? Wie hast du es gelöst?
Vielen Dank im Voraus.