diff --git a/client/pom.xml b/client/pom.xml
index c61de5f9..c3882bab 100644
--- a/client/pom.xml
+++ b/client/pom.xml
@@ -5,7 +5,7 @@
io.split.client
java-client-parent
- 4.10.2-rc2
+ 4.10.2
java-client
jar
diff --git a/client/src/main/java/io/split/client/SplitClientImpl.java b/client/src/main/java/io/split/client/SplitClientImpl.java
index f265f22e..e15410da 100644
--- a/client/src/main/java/io/split/client/SplitClientImpl.java
+++ b/client/src/main/java/io/split/client/SplitClientImpl.java
@@ -48,6 +48,7 @@ public final class SplitClientImpl implements SplitClient {
public static final SplitResult SPLIT_RESULT_CONTROL = new SplitResult(Treatments.CONTROL, null);
private static final String CLIENT_DESTROY = "Client has already been destroyed - no calls possible";
private static final String CATCHALL_EXCEPTION = "CatchAll Exception";
+ private static final String MATCHING_KEY = "matchingKey";
private static final Logger _log = LoggerFactory.getLogger(SplitClientImpl.class);
@@ -321,7 +322,7 @@ private SplitResult getTreatmentWithConfigInternal(String matchingKey, String bu
return SPLIT_RESULT_CONTROL;
}
- if (!KeyValidator.isValid(matchingKey, "matchingKey", _config.maxStringLength(), methodEnum.getMethod())) {
+ if (!KeyValidator.isValid(matchingKey, MATCHING_KEY, _config.maxStringLength(), methodEnum.getMethod())) {
return SPLIT_RESULT_CONTROL;
}
@@ -462,7 +463,7 @@ private Map validateBeforeEvaluateByFlagSets(String matchin
_log.error(CLIENT_DESTROY);
return new HashMap<>();
}
- if (!KeyValidator.isValid(matchingKey, "matchingKey", _config.maxStringLength(), methodEnum.getMethod())) {
+ if (!KeyValidator.isValid(matchingKey, MATCHING_KEY, _config.maxStringLength(), methodEnum.getMethod())) {
return new HashMap<>();
}
if (!KeyValidator.bucketingKeyIsValid(bucketingKey, _config.maxStringLength(), methodEnum.getMethod())) {
@@ -476,7 +477,7 @@ private Map validateBeforeEvaluate(List featureFlag
_log.error(CLIENT_DESTROY);
return createMapControl(featureFlagNames);
}
- if (!KeyValidator.isValid(matchingKey, "matchingKey", _config.maxStringLength(), methodEnum.getMethod())) {
+ if (!KeyValidator.isValid(matchingKey, MATCHING_KEY, _config.maxStringLength(), methodEnum.getMethod())) {
return createMapControl(featureFlagNames);
}
if (!KeyValidator.bucketingKeyIsValid(bucketingKey, _config.maxStringLength(), methodEnum.getMethod())) {
diff --git a/client/src/test/java/io/split/storages/memory/InMemoryCacheTest.java b/client/src/test/java/io/split/storages/memory/InMemoryCacheTest.java
index ada94588..374f734c 100644
--- a/client/src/test/java/io/split/storages/memory/InMemoryCacheTest.java
+++ b/client/src/test/java/io/split/storages/memory/InMemoryCacheTest.java
@@ -23,6 +23,7 @@
import java.util.stream.Collectors;
import java.util.stream.Stream;
+import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
@@ -236,5 +237,9 @@ public void testGetNamesByFlagSets() {
_cache.remove("splitName_2");
namesByFlagSets = _cache.getNamesByFlagSets(new ArrayList<>(Arrays.asList("set1", "set2", "set3")));
assertFalse(namesByFlagSets.get("set1").contains("splitName_2"));
+ _cache.remove("splitName_1");
+ namesByFlagSets = _cache.getNamesByFlagSets(new ArrayList<>(Arrays.asList("set1", "set2", "set3")));
+ assertFalse(namesByFlagSets.get("set1").contains("splitName_1"));
+ assertTrue(namesByFlagSets.get("set1").isEmpty());
}
}
\ No newline at end of file
diff --git a/pluggable-storage/pom.xml b/pluggable-storage/pom.xml
index 32e5198e..6d8a9728 100644
--- a/pluggable-storage/pom.xml
+++ b/pluggable-storage/pom.xml
@@ -6,7 +6,7 @@
java-client-parent
io.split.client
- 4.10.2-rc2
+ 4.10.2
2.1.0
diff --git a/pom.xml b/pom.xml
index 3523fcff..4cb3c90c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
4.0.0
io.split.client
java-client-parent
- 4.10.2-rc2
+ 4.10.2
diff --git a/redis-wrapper/pom.xml b/redis-wrapper/pom.xml
index 67e45846..2c089f60 100644
--- a/redis-wrapper/pom.xml
+++ b/redis-wrapper/pom.xml
@@ -6,7 +6,7 @@
java-client-parent
io.split.client
- 4.10.2-rc2
+ 4.10.2
redis-wrapper
3.1.0
diff --git a/testing/pom.xml b/testing/pom.xml
index 0d39249c..303309ef 100644
--- a/testing/pom.xml
+++ b/testing/pom.xml
@@ -5,7 +5,7 @@
io.split.client
java-client-parent
- 4.10.2-rc2
+ 4.10.2
java-client-testing
jar