Skip to content

Commit b993ee2

Browse files
committed
Fix checkstyle errors
Signed-off-by: christian.lutnik <[email protected]>
1 parent 16f57e8 commit b993ee2

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

src/main/java/dev/openfeature/sdk/Client.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public interface Client extends Features, EventBus<Client> {
3535
List<Hook> getHooks();
3636

3737
/**
38-
* Returns the current state of the associated provider
38+
* Returns the current state of the associated provider.
3939
* @return the provider state
4040
*/
4141
ProviderState getProviderState();

src/main/java/dev/openfeature/sdk/ErrorCode.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
@SuppressWarnings("checkstyle:MissingJavadocType")
44
public enum ErrorCode {
5-
PROVIDER_NOT_READY, FLAG_NOT_FOUND, PARSE_ERROR, TYPE_MISMATCH, TARGETING_KEY_MISSING, INVALID_CONTEXT, GENERAL, PROVIDER_FATAL
5+
PROVIDER_NOT_READY, FLAG_NOT_FOUND, PARSE_ERROR, TYPE_MISMATCH, TARGETING_KEY_MISSING, INVALID_CONTEXT, GENERAL,
6+
PROVIDER_FATAL
67
}

src/main/java/dev/openfeature/sdk/OpenFeatureClient.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
* @deprecated // TODO: eventually we will make this non-public. See issue #872
2020
*/
2121
@Slf4j
22-
@SuppressWarnings({"PMD.DataflowAnomalyAnalysis", "PMD.BeanMembersShouldSerialize",
23-
"PMD.UnusedLocalVariable", "unchecked", "rawtypes"})
22+
@SuppressWarnings({"PMD.DataflowAnomalyAnalysis", "PMD.BeanMembersShouldSerialize", "PMD.UnusedLocalVariable",
23+
"unchecked", "rawtypes"})
2424
@Deprecated() // TODO: eventually we will make this non-public. See issue #872
2525
public class OpenFeatureClient implements Client {
2626

@@ -43,8 +43,8 @@ public class OpenFeatureClient implements Client {
4343
* @param domain An identifier which logically binds clients with providers (used by observability tools).
4444
* @param version Version of the client (used by observability tools).
4545
* @deprecated Do not use this constructor. It's for internal use only.
46-
* Clients created using it will not run event handlers.
47-
* Use the OpenFeatureAPI's getClient factory method instead.
46+
* Clients created using it will not run event handlers.
47+
* Use the OpenFeatureAPI's getClient factory method instead.
4848
*/
4949
@Deprecated() // TODO: eventually we will make this non-public. See issue #872
5050
public OpenFeatureClient(

src/main/java/dev/openfeature/sdk/ProviderAccessor.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package dev.openfeature.sdk;
22

3+
/**
4+
* Provides access to the future provider for the domain of the client.
5+
*/
36
@FunctionalInterface
47
public interface ProviderAccessor {
58
FeatureProvider getProvider();

src/main/java/dev/openfeature/sdk/exceptions/FatalError.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import lombok.Getter;
55
import lombok.experimental.StandardException;
66

7+
@SuppressWarnings("checkstyle:MissingJavadocType")
78
@StandardException
89
public class FatalError extends OpenFeatureError {
910
private static final long serialVersionUID = 1L;

0 commit comments

Comments
 (0)