i've tried several iterations, here's latest
<?xml version="1.0" encoding="utf-8"?> <findbugsfilter> <match> <package name="~com[.]xenoterracide[.]rpf[.]([.].*)?"/> <bug code="se_transient_field_not_restored"/> </match> </findbugsfilter>
ultimately i'd packages matching (glob syntax)
com.xenoterracide.rpf.*.ui
or maybe com.xenoterracide.rpf.*
info] field com.xenoterracide.rpf.character.ui.charactersview.editdialog transient isn't set deserialization [com.xenoterracide.rpf.character.ui.charactersview] in charactersview.java se_transient_field_not_restored [info] field com.xenoterracide.rpf.character.ui.charactersview.messenger transient isn't set deserialization [com.xenoterracide.rpf.character.ui.charactersview] in charactersview.java se_transient_field_not_restored [info] field com.xenoterracide.rpf.character.ui.charactersview.repo transient isn't set deserialization [com.xenoterracide.rpf.character.ui.charactersview] in charactersview.java se_transient_field_not_restored [info] field com.xenoterracide.rpf.ui.navigationbar.messages transient isn't set deserialization [com.xenoterracide.rpf.ui.navigationbar] in navigationbar.java se_transient_field_not_restored [info] field com.xenoterracide.rpf.ui.components.editdialog.repository transient isn't set deserialization [com.xenoterracide.rpf.ui.components.editdialog] in editdialog.java se_transient_field_not_restored [info]
config in parent
<plugin> <groupid>org.codehaus.mojo</groupid> <artifactid>findbugs-maven-plugin</artifactid> <version>3.0.3</version> <configuration> <effort>max</effort> <threshold>low</threshold> <xmloutput>false</xmloutput> <excludefilterfile>findbugs-exclude.xml</excludefilterfile> </configuration> <executions> <execution> <phase>test-compile</phase> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin>
this, works, rather verbose , won't scale
<?xml version="1.0" encoding="utf-8"?> <findbugsfilter> <match> <class name="com.xenoterracide.rpf.character.ui.charactersview"/> <bug pattern="se_transient_field_not_restored"/> </match> <match> <class name="com.xenoterracide.rpf.character.ui.charactereditdialog"/> <bug pattern="se_transient_field_not_restored"/> </match> <match> <class name="com.xenoterracide.rpf.ui.navigationbar"/> <bug pattern="se_transient_field_not_restored"/> </match> <match> <class name="com.xenoterracide.rpf.ui.components.editdialog"/> <bug pattern="se_transient_field_not_restored"/> </match> </findbugsfilter>
this works, , matches 5 classes
<?xml version="1.0" encoding="utf-8"?> <findbugsfilter> <match> <package name="~com\.xenoterracide\.rpf[.a-za-z0-9]*\.ui.*"/> <bug pattern="se_transient_field_not_restored"/> </match> </findbugsfilter>
Comments
Post a Comment