← 输入框|github.com|刷新
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.split.client</groupId>
<artifactId>java-client</artifactId>
<version>1.1</version>
<version>1.1.1</version>
<packaging>jar</packaging>
<name>Java Client</name>
<description>Java SDK for Split</description>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/io/split/client/SplitClientImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private TreatmentAndLabel getTreatmentWithoutExceptionHandling(String matchingKe
if (_log.isDebugEnabled()) {
_log.debug("Returning control because no split was found for: " + feature);
}
return new TreatmentAndLabel(Treatments.CONTROL, "split not found");
return new TreatmentAndLabel(Treatments.CONTROL, "rules not found");
}

return getTreatment(matchingKey, bucketingKey, parsedSplit, attributes);
Expand All @@ -138,7 +138,7 @@ private TreatmentAndLabel getTreatment(String matchingKey, String bucketingKey,
}
}

return new TreatmentAndLabel(parsedSplit.defaultTreatment(), "no condition matched");
return new TreatmentAndLabel(parsedSplit.defaultTreatment(), "no rule matched");
}

private static final class TreatmentAndLabel {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/io/split/engine/experiments/ParsedSplit.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ public List<ParsedCondition> parsedConditions() {
public int hashCode() {
int result = 17;
result = 31 * result + _feature.hashCode();
result = 31 * result + Long.hashCode(_seed);
result = 31 * result + Boolean.hashCode(_killed);
result = 31 * result + (int)(_seed ^ (_seed >>> 32));
result = 31 * result + (_killed ? 1 : 0);
result = 31 * result + _defaultTreatment.hashCode();
result = 31 * result + _parsedCondition.hashCode();
result = 31 * result + (_trafficTypeName == null ? 0 : _trafficTypeName.hashCode());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public String toString() {
@Override
public int hashCode() {
int result = 17;
result = 31 * result + Long.hashCode(_compareTo);
result = 31 * result + (int)(_compareTo ^ (_compareTo >>> 32));
return result;
}

Expand Down