Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--findbugs-exclude.xml7
-rw-r--r--pom.xml2
2 files changed, 9 insertions, 0 deletions
diff --git a/findbugs-exclude.xml b/findbugs-exclude.xml
new file mode 100644
index 000000000..eb96e850a
--- /dev/null
+++ b/findbugs-exclude.xml
@@ -0,0 +1,7 @@
+<FindBugsFilter>
+ <!-- Ignore all ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD violations in "start(BundleContext)" methods -->
+ <Match>
+ <Bug pattern="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD"/>
+ <Method name="start" params="org.osgi.framework.BundleContext" returns="void"/>
+ </Match>
+</FindBugsFilter>
diff --git a/pom.xml b/pom.xml
index 6090d93ea..1e401d2da 100644
--- a/pom.xml
+++ b/pom.xml
@@ -209,6 +209,7 @@
<threshold>Low</threshold>
<xmlOutput>true</xmlOutput>
<failOnError>false</failOnError>
+ <excludeFilterFile>findbugs-exclude.xml</excludeFilterFile>
</configuration>
<executions>
<execution>
@@ -275,6 +276,7 @@
<threshold>Low</threshold>
<xmlOutput>true</xmlOutput>
<failOnError>false</failOnError>
+ <excludeFilterFile>findbugs-exclude.xml</excludeFilterFile>
</configuration>
<executions>
<execution>

Back to the top