range reverse check
This commit is contained in:
parent
78c2fab10a
commit
b41a805cff
|
|
@ -78,6 +78,11 @@ public class MakerTest {
|
|||
|
||||
final int start = Integer.parseInt(ra[0]);
|
||||
final int end = Integer.parseInt(ra[1]);
|
||||
if (start > end) {
|
||||
log.errorf("index range start(%d) should <= end(%d)", start, end);
|
||||
return null;
|
||||
}
|
||||
|
||||
for (int i = start; i <= end; i++) {
|
||||
final String _s = String.valueOf(i);
|
||||
if (map.containsKey(_s)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue