File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
client/src/main/java/io/split/client/dtos Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 11package io .split .client .dtos ;
22
3+ import java .util .ArrayList ;
34import java .util .List ;
45
56public class RuleBasedSegment {
@@ -16,7 +17,21 @@ public String toString() {
1617 "name='" + name + '\'' +
1718 ", status=" + status +
1819 ", trafficTypeName='" + trafficTypeName + '\'' +
19- ", changeNumber=" + changeNumber +
20+ ", changeNumber=" + changeNumber + '\'' +
21+ excludedToString () + '\'' +
2022 '}' ;
2123 }
24+
25+ public String excludedToString () {
26+ Excluded ts = excluded != null ? excluded : new Excluded ();
27+ if (ts .keys == null ) {
28+ ts .keys = new ArrayList <>();
29+ }
30+
31+ if (ts .segments == null ) {
32+ ts .segments = new ArrayList <>();
33+ }
34+
35+ return ", excludedKeys=" + ts .keys + '\'' + ", excludedSegments=" + ts .segments ;
36+ }
2237}
You can’t perform that action at this time.
0 commit comments