Skip to content

Commit

Permalink
Annotations: remove dependency from BugRanker
Browse files Browse the repository at this point in the history
  • Loading branch information
amaembo committed Oct 9, 2015
1 parent 6922100 commit 2f9d672
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

import edu.umd.cs.findbugs.BugRanker;

/**
* Annotation indicating that a FindBugs warning is desired.
*
Expand All @@ -29,7 +27,7 @@
public Confidence confidence() default Confidence.LOW;

/** Desire a warning at least this scary */
public int rank() default BugRanker.VISIBLE_RANK_MAX;
public int rank() default 20; // BugRanker.VISIBLE_RANK_MAX

/** Desire at least this many warnings */
public int num() default 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

import edu.umd.cs.findbugs.BugRanker;

/**
* Annotation indicating that a FindBugs warning is expected.
*
Expand All @@ -29,7 +27,7 @@
public Confidence confidence() default Confidence.LOW;

/** Expect a warning at least this scary */
public int rank() default BugRanker.VISIBLE_RANK_MAX;
public int rank() default 20; // BugRanker.VISIBLE_RANK_MAX

/** Expect at least this many warnings */
public int num() default 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

import edu.umd.cs.findbugs.BugRanker;

/**
* Annotation indicating that <em>no</em> FindBugs warning is expected.
*
Expand All @@ -29,7 +27,7 @@
public Confidence confidence() default Confidence.LOW;

/** Want no warning at this rank or scarier */
public int rank() default BugRanker.VISIBLE_RANK_MAX;
public int rank() default 20; // BugRanker.VISIBLE_RANK_MAX

/** Tolerate up to this many warnings */
public int num() default 0;
Expand Down
14 changes: 1 addition & 13 deletions pom/annotations/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<groupId>com.google.code.findbugs</groupId>
<artifactId>annotations</artifactId>
<version>3.0.1</version>
<version>3.0.1u1</version>
<packaging>jar</packaging>

<url>http://findbugs.sourceforge.net/</url>
Expand Down Expand Up @@ -113,12 +113,6 @@
<includes>
<include>edu/umd/cs/findbugs/annotations/*.java</include>
</includes>
<excludes>
<exclude>edu/umd/cs/findbugs/annotations/DesireWarning.java</exclude>
<exclude>edu/umd/cs/findbugs/annotations/DesireNoWarning.java</exclude>
<exclude>edu/umd/cs/findbugs/annotations/ExpectWarning.java</exclude>
<exclude>edu/umd/cs/findbugs/annotations/NoWarning.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
Expand All @@ -138,12 +132,6 @@
<include>edu/umd/cs/findbugs/annotations/*.java</include>
<include>edu/umd/cs/findbugs/Priorities.java</include>
</includes>
<excludes>
<exclude>edu/umd/cs/findbugs/annotations/DesireWarning.java</exclude>
<exclude>edu/umd/cs/findbugs/annotations/DesireNoWarning.java</exclude>
<exclude>edu/umd/cs/findbugs/annotations/ExpectWarning.java</exclude>
<exclude>edu/umd/cs/findbugs/annotations/NoWarning.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
Expand Down

0 comments on commit 2f9d672

Please sign in to comment.