-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround for google/error-prone#4335
- Loading branch information
1 parent
e9e1875
commit c3079a7
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
.../feature/range/src/main/java/com/google/errorprone/annotations/RestrictedInheritance.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.google.errorprone.annotations; | ||
|
||
/** | ||
* Workaround for <code>class file for com.google.errorprone.annotations.RestrictedInheritance not found</code>. | ||
* | ||
* <pre><code> | ||
* warning: Cannot find annotation method 'explanation()' in type 'RestrictedInheritance' | ||
* warning: Cannot find annotation method 'link()' in type 'RestrictedInheritance' | ||
* warning: Cannot find annotation method 'allowedOnPath()' in type 'RestrictedInheritance' | ||
* warning: Cannot find annotation method 'allowlistAnnotations()' in type 'RestrictedInheritance' | ||
* </code></pre> | ||
* | ||
* @see <a href="https://github.com/google/error-prone/issues/4335">Report</a> | ||
*/ | ||
public @interface RestrictedInheritance { | ||
String explanation(); | ||
String link(); | ||
String allowedOnPath(); | ||
Class<?>[] allowlistAnnotations(); | ||
} |