mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
Java: Fix VisibleForTestingAbuse false positives in annotations
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package packagetwo;
|
||||
|
||||
import packageone.*;
|
||||
|
||||
@interface Range {
|
||||
int min() default 0;
|
||||
int max() default 100;
|
||||
}
|
||||
|
||||
public class UseWithinAnnotation {
|
||||
@VisibleForTesting
|
||||
static final int MAX_LISTING_LENGTH_MIN = 1;
|
||||
@VisibleForTesting
|
||||
static final int MAX_LISTING_LENGTH_MAX = 1000;
|
||||
|
||||
@Range(min = MAX_LISTING_LENGTH_MIN, max = MAX_LISTING_LENGTH_MAX)
|
||||
private int maxListingLength = MAX_LISTING_LENGTH_MAX;
|
||||
}
|
||||
Reference in New Issue
Block a user