Skip to content

Commit

Permalink
Remove @BugPattern.category
Browse files Browse the repository at this point in the history
RELNOTES: @BugPattern.category is no longer supported; prefer @BugPattern.tags as a means to apply general tags to checks.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=235214723
  • Loading branch information
cushon committed Feb 22, 2019
1 parent 530c14e commit 1f2fed9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 38 deletions.
37 changes: 0 additions & 37 deletions annotation/src/main/java/com/google/errorprone/BugPattern.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,43 +145,6 @@ public String displayInfo() {
}
}

/**
* The class of bug this bug checker detects.
*
* @deprecated This category field hasn't provided much value, as the 'problem domain' of each
* BugChecker is evident from the checker itself. We've introduced {@link #tags} as a means to
* apply general tags to checks.
*/
@Deprecated
Category category() default Category.ONE_OFF;

public enum Category {
/** General Java or JDK errors. */
JDK,
/** Errors specific to Google Guava. */
GUAVA,
/** Errors specific to Google Guice. */
GUICE,
/** Errors specific to Dagger. */
DAGGER,
/** Errors specific to JUnit. */
JUNIT,
/** One-off matchers that are not general errors. */
ONE_OFF,
/** JSR-330 errors not specific to Guice. */
INJECT,
/** Errors specific to Mockito. */
MOCKITO,
/** Errors specific to JMock. */
JMOCK,
/** Errors specific to Android. */
ANDROID,
/** Errors specific to Protocol Buffers. */
PROTOBUF,
/** Errors specific to Truth. */
TRUTH;
}

/**
* A short summary of the problem that this checker detects. Used for the default compiler error
* message and for the short description in the generated docs. Should not end with a period, to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package com.google.errorprone.bugpatterns;

import static com.google.common.collect.Iterables.getOnlyElement;
import static com.google.errorprone.BugPattern.Category.TRUTH;
import static com.google.errorprone.BugPattern.SeverityLevel.WARNING;
import static com.google.errorprone.matchers.Matchers.allOf;
import static com.google.errorprone.matchers.Matchers.anyOf;
Expand Down

0 comments on commit 1f2fed9

Please sign in to comment.