Skip to content
Snippets Groups Projects
Commit c83b1240 authored by abat's avatar abat
Browse files

Merge into master from pull request #2616:

parents b59a25d6 78d2c1d7
No related branches found
No related tags found
No related merge requests found
...@@ -283,10 +283,12 @@ ...@@ -283,10 +283,12 @@
<target name="findbugs-xml" depends="init,compile"> <target name="findbugs-xml" depends="init,compile">
<taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath="${findbugs.home}/lib/findbugs-ant.jar"/> <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath="${findbugs.home}/lib/findbugs-ant.jar"/>
<mkdir dir="${findbugs.results}"/> <mkdir dir="${findbugs.results}"/>
<findbugs home="${findbugs.home}" <findbugs
home="${findbugs.home}"
output="xml" output="xml"
excludeFilter="${basedir}/findbugs-exclude.xml" excludeFilter="${basedir}/findbugs-exclude.xml"
outputFile="${findbugs.results}/results.xml" reportLevel='high'> jvmargs="-Xmx1024m"
outputFile="${findbugs.results}/results.xml">
<sourcePath path="${source}" /> <sourcePath path="${source}" />
<sourcePath path="${thrift.out.dir}" /> <sourcePath path="${thrift.out.dir}" />
<class location="${build}" /> <class location="${build}" />
...@@ -299,9 +301,11 @@ ...@@ -299,9 +301,11 @@
<target name="findbugs" depends="init,compile"> <target name="findbugs" depends="init,compile">
<taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath="${findbugs.home}/lib/findbugs-ant.jar"/> <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath="${findbugs.home}/lib/findbugs-ant.jar"/>
<mkdir dir="${findbugs.results}"/> <mkdir dir="${findbugs.results}"/>
<findbugs home="${findbugs.home}" <findbugs
home="${findbugs.home}"
output="html" output="html"
excludeFilter="${basedir}/findbugs-exclude.xml" excludeFilter="${basedir}/findbugs-exclude.xml"
jvmargs="-Xmx1024m"
outputFile="${findbugs.results}/results.html" > outputFile="${findbugs.results}/results.html" >
<sourcePath path="${source}" /> <sourcePath path="${source}" />
<sourcePath path="${thrift.out.dir}" /> <sourcePath path="${thrift.out.dir}" />
......
<FindBugsFilter> <FindBugsFilter>
<!--- Checks disabled on generated code --> <!--- Checks disabled on generated code -->
<Match> <Match>
<!-- don't complain about switch statements / external representation exposed <!-- don't complain about switch statements / external representation exposed
by generated parser files --> by generated parser files -->
<Class name="~net\.bigdb\.(query|yang)\.parser\..*(Lexer|Parser)" /> <Class name="~net\.bigdb\.(query|yang)\.parser\..*(Lexer|Parser)" />
<Bug pattern="SF_SWITCH_NO_DEFAULT,EI_EXPOSE_REP" /> <Or>
<Bug pattern="SF_SWITCH_NO_DEFAULT,EI_EXPOSE_REP,SBSC_USE_STRINGBUFFER_CONCATENATION" />
<Bug category="PERFORMANCE,MALICIOUS_CODE" />
</Or>
</Match>
<Match>
<!-- Exclude warnings in generated thrift class files -->
<Class name="~net\.floodlightcontroller\.packetstreamer\.thrift\..*" />
<Bug pattern="CN_IDIOM,DLS_DEAD_LOCAL_STORE" />
</Match> </Match>
<!-- checks disabled because of too many false positives --> <!-- checks disabled because of too many false positives -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment