This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding custom Suppress FindBugs class to make it JDK8 compatible (#502)
Adding Getter for the CanUpdate and the CoolOffPeriodInMillis
- Loading branch information
1 parent
cb82b4a
commit 1151ae1
Showing
2 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
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
19 changes: 19 additions & 0 deletions
19
...java/com/amazon/opendistro/elasticsearch/performanceanalyzer/util/SuppressFBWarnings.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,19 @@ | ||
package com.amazon.opendistro.elasticsearch.performanceanalyzer.util; | ||
|
||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
|
||
@Retention(RetentionPolicy.CLASS) | ||
public @interface SuppressFBWarnings { | ||
/** | ||
* The set of FindBugs warnings that are to be suppressed in | ||
* annotated element. The value can be a bug category, kind or pattern. | ||
* | ||
*/ | ||
String[] value() default {}; | ||
|
||
/** | ||
* Optional documentation of the reason why the warning is suppressed | ||
*/ | ||
String justification() default ""; | ||
} |