Skip to content

Commit

Permalink
Fix tests (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewelwell authored Mar 23, 2023
1 parent f57c754 commit 0191e6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/flagsmith/config/FlagsmithCacheConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ public Builder recordStats() {
* @param envFlagsCacheKey key to use in the cache for environment level flags
* @return the Builder
*/
public Builder enableEnvLevelCaching(@NonNull String envFlagsCacheKey) {
if (StringUtils.isBlank(envFlagsCacheKey)) {
public Builder enableEnvLevelCaching(String envFlagsCacheKey) {
if (envFlagsCacheKey == null || StringUtils.isBlank(envFlagsCacheKey)) {
throw new IllegalArgumentException("Missing environment level cache key");
}
this.envFlagsCacheKey = envFlagsCacheKey;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/flagsmith/interfaces/FlagsmithSdk.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Flags identifyUserWithTraits(
);

FlagsmithConfig getConfig();

EnvironmentModel getEnvironment();

RequestProcessor getRequestor();
Expand All @@ -43,8 +43,8 @@ default FlagsmithCache getCache() {
* validate user has a valid identifier.
* @param identifier user identifier
*/
default void assertValidUser(@NonNull String identifier) {
if (StringUtils.isBlank(identifier)) {
default void assertValidUser(String identifier) {
if (identifier == null || StringUtils.isBlank(identifier)) {
throw new IllegalArgumentException("Missing user identifier");
}
}
Expand Down

0 comments on commit 0191e6d

Please sign in to comment.