File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -125,19 +125,14 @@ public Builder any(final String value) {
125
125
return this ;
126
126
}
127
127
128
- public Builder range (final Object [] pArgs ) {
128
+ public Builder range (String ... pArgs ) {
129
129
String value = "[" ;
130
- for (int _from = 0 ; _from < pArgs .length ; _from += 2 ) {
131
- int _to = _from + 1 ;
132
- if (pArgs .length <= _to ) {
133
- break ;
134
- }
135
- int from = Integer .getInteger (sanitize ((String ) pArgs [_from ]));
136
- int to = Integer .getInteger (sanitize ((String ) pArgs [_to ]));
130
+ for (int _to = 1 ; _to < pArgs .length ; _to += 2 ) {
131
+ String from = sanitize ((String )pArgs [_to - 1 ]);
132
+ String to = sanitize ((String )pArgs [_to ]);
137
133
138
134
value += from + "-" + to ;
139
135
}
140
-
141
136
value += "]" ;
142
137
143
138
this .add (value );
You can’t perform that action at this time.
0 commit comments