-
Notifications
You must be signed in to change notification settings - Fork 42
chore: fix issues with compilation on later JDKs #178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0"?> | ||
|
||
<!DOCTYPE suppressions PUBLIC "-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN" "https://checkstyle.org/dtds/suppressions_1_2.dtd"> | ||
|
||
<suppressions> | ||
<!-- checkstyle suppressions can go here --> | ||
</suppressions> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ | |
<property name="optional" value="true"/> | ||
</module> | ||
|
||
|
||
<!-- Checks for whitespace --> | ||
<!-- See http://checkstyle.org/config_whitespace.html --> | ||
<module name="FileTabCharacter"> | ||
|
@@ -46,7 +47,23 @@ | |
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/> | ||
</module> | ||
|
||
<module name="SuppressWarningsFilter" /> | ||
|
||
<module name="TreeWalker"> | ||
<!-- needed for SuppressWarningsFilter --> | ||
<module name="SuppressWarningsHolder" /> | ||
|
||
<module name="SuppressWarnings"> | ||
<property name="id" value="checkstyle:suppresswarnings"/> | ||
</module> | ||
|
||
<!-- https://checkstyle.org/config_filters.html#SuppressionXpathFilter --> | ||
<module name="SuppressionXpathFilter"> | ||
<property name="file" value="${org.checkstyle.google.suppressionxpathfilter.config}" | ||
default="checkstyle-xpath-suppressions.xml" /> | ||
<property name="optional" value="true"/> | ||
</module> | ||
|
||
<module name="OuterTypeFilename"/> | ||
<module name="IllegalTokenText"> | ||
<property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/> | ||
|
@@ -223,7 +240,7 @@ | |
<property name="arrayInitIndent" value="4"/> | ||
</module> | ||
<module name="AbbreviationAsWordInName"> | ||
<property name="ignoreFinal" value="false"/> | ||
<property name="ignoreFinal" value="true"/> | ||
<property name="allowedAbbreviations" value="API" /> | ||
<property name="allowedAbbreviationLength" value="1"/> | ||
<property name="tokens" | ||
|
@@ -292,6 +309,12 @@ | |
<property name="allowedAnnotations" value="Override, Test"/> | ||
<property name="tokens" value="METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF"/> | ||
</module> | ||
<module name="MissingJavadocType"> | ||
<property name="scope" value="protected"/> | ||
<property name="tokens" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, | ||
RECORD_DEF, ANNOTATION_DEF"/> | ||
<property name="excludeScope" value="nothing"/> | ||
</module> | ||
<module name="MethodName"> | ||
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9_]*$"/> | ||
<message key="name.invalidPattern" | ||
|
@@ -306,12 +329,5 @@ | |
<module name="CommentsIndentation"> | ||
<property name="tokens" value="SINGLE_LINE_COMMENT, BLOCK_COMMENT_BEGIN"/> | ||
</module> | ||
<!-- https://checkstyle.org/config_filters.html#SuppressionXpathFilter --> | ||
<module name="SuppressionXpathFilter"> | ||
<property name="file" value="${org.checkstyle.google.suppressionxpathfilter.config}" | ||
default="checkstyle-xpath-suppressions.xml" /> | ||
<property name="optional" value="true"/> | ||
</module> | ||
Comment on lines
-309
to
-314
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I moved all the suppression-related config to the top of the parent element. |
||
</module> | ||
</module> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
package dev.openfeature.sdk; | ||
|
||
@SuppressWarnings("checkstyle:MissingJavadocType") | ||
public enum ErrorCode { | ||
PROVIDER_NOT_READY, FLAG_NOT_FOUND, PARSE_ERROR, TYPE_MISMATCH, TARGETING_KEY_MISSING, INVALID_CONTEXT, GENERAL | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
package dev.openfeature.sdk; | ||
|
||
@SuppressWarnings("checkstyle:MissingJavadocType") | ||
public enum FlagValueType { | ||
STRING, INTEGER, DOUBLE, OBJECT, BOOLEAN; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
package dev.openfeature.sdk; | ||
|
||
/** | ||
* Predefined resolution reasons. | ||
*/ | ||
Comment on lines
+3
to
+5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This one it debatable but I wanted to make it clear that you're not limited to just these reasons, these are just some we pre-defined. |
||
public enum Reason { | ||
DISABLED, SPLIT, TARGETING_MATCH, DEFAULT, UNKNOWN, ERROR | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New stuff to support suppression via annotations.