From 299e9e81a013d9cc698afe9fd6546c80589f0b21 Mon Sep 17 00:00:00 2001 From: Jian Shen Date: Wed, 25 May 2022 19:37:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=90=9C=E7=B4=A2=E8=B6=85?= =?UTF-8?q?=E9=99=90=E9=80=80=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../script/temp/shenjian/util/GaoDeUtils.groovy | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/util/GaoDeUtils.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/util/GaoDeUtils.groovy index 33ae920f4..ca4a2ab38 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/util/GaoDeUtils.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/temp/shenjian/util/GaoDeUtils.groovy @@ -94,7 +94,7 @@ class GaoDeUtils { synchronized (this) { for (int i = 0; i < GAO_DE_AK.size(); i++) { if (GAO_DE_AK[i] == params.key) { - if (i + 1 > GAO_DE_AK.size()) { + if (i + 1 >= GAO_DE_AK.size()) { System.exit(1) } keyUsed = new AtomicInteger(i+1) @@ -161,7 +161,7 @@ class GaoDeUtils { synchronized (this) { for (int i = 0; i < GAO_DE_AK.size(); i++) { if (GAO_DE_AK[i] == params.key) { - if (i + 1 > GAO_DE_AK.size()) { + if (i + 1 >= GAO_DE_AK.size()) { System.exit(1) } keyUsed = new AtomicInteger(i+1) @@ -241,7 +241,7 @@ class GaoDeUtils { synchronized (this) { for (int i = 0; i < GAO_DE_AK.size(); i++) { if (GAO_DE_AK[i] == params.key) { - if (i + 1 > GAO_DE_AK.size()) { + if (i + 1 >= GAO_DE_AK.size()) { System.exit(1) } keyUsed = new AtomicInteger(i+1) @@ -281,7 +281,7 @@ class GaoDeUtils { synchronized (this) { for (int i = 0; i < GAO_DE_AK.size(); i++) { if (GAO_DE_AK[i] == params.key) { - if (i + 1 > GAO_DE_AK.size()) { + if (i + 1 >= GAO_DE_AK.size()) { System.exit(1) } keyUsed = new AtomicInteger(i+1) @@ -336,7 +336,7 @@ class GaoDeUtils { synchronized (this) { for (int i = 0; i < GAO_DE_AK.size(); i++) { if (GAO_DE_AK[i] == params.key) { - if (i + 1 > GAO_DE_AK.size()) { + if (i + 1 >= GAO_DE_AK.size()) { System.exit(1) } keyUsed = new AtomicInteger(i+1) @@ -392,7 +392,7 @@ class GaoDeUtils { synchronized (this) { for (int i = 0; i < GAO_DE_AK.size(); i++) { if (GAO_DE_AK[i] == params.key) { - if (i + 1 > GAO_DE_AK.size()) { + if (i + 1 >= GAO_DE_AK.size()) { System.exit(1) } keyUsed = new AtomicInteger(i+1) @@ -436,7 +436,7 @@ class GaoDeUtils { synchronized (this) { for (int i = 0; i < GAO_DE_AK.size(); i++) { if (GAO_DE_AK[i] == params.key) { - if (i + 1 > GAO_DE_AK.size()) { + if (i + 1 >= GAO_DE_AK.size()) { System.exit(1) } keyUsed = new AtomicInteger(i+1)