Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Commit

Permalink
Suppress FindBugs warning on FileMatchers
Browse files Browse the repository at this point in the history
This warning is only present when we compile against Juno or Indigo,
because the Harmcrest dependency does not contain the describeMismatch
method in them.
  • Loading branch information
WonderCsabo authored and rgladwell committed Jul 8, 2015
1 parent 956409c commit 709c8c3
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 11 deletions.
7 changes: 7 additions & 0 deletions me.gladwell.eclipse.m2e.android.test/findbugs-exclude.xml
@@ -0,0 +1,7 @@
<FindBugsFilter>
<Match>
<Class name="me.gladwell.eclipse.m2e.android.test.FileMatchers$1" />
<Method name="describeMismatch" />
<Bug pattern="UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS" />
</Match>
</FindBugsFilter>
7 changes: 7 additions & 0 deletions me.gladwell.eclipse.m2e.android.test/pom.xml
Expand Up @@ -144,6 +144,13 @@
</replacements>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<configuration>
<excludeFilterFile>${basedir}/findbugs-exclude.xml</excludeFilterFile>
</configuration>
</plugin>
</plugins>
</build>
</project>
31 changes: 20 additions & 11 deletions pom.xml
Expand Up @@ -69,6 +69,26 @@
</modules>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<maxRank>14</maxRank>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
Expand Down Expand Up @@ -127,17 +147,6 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<maxRank>14</maxRank>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down

0 comments on commit 709c8c3

Please sign in to comment.