FIX: Range get stoped use exception as termination case sentinel
这个提交包含在:
父节点
524988079f
当前提交
79bb675c94
@ -172,12 +172,9 @@ class Range {
|
||||
* @return The first item of the range or Const.noTileId if there is none.
|
||||
*/
|
||||
int get () {
|
||||
try {
|
||||
if (!numbers.isEmpty())
|
||||
return numbers.remove(0);
|
||||
}
|
||||
catch (IndexOutOfBoundsException e) {
|
||||
return Const.noTileId;
|
||||
}
|
||||
return Const.noTileId;
|
||||
}
|
||||
|
||||
/** @name protected data types */
|
||||
|
||||
正在加载...
x
在新工单中引用
屏蔽一个用户