From b8f2ae474c7f50de8ca19d8146a6dff8cd6bdd75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E5=AE=87=E7=90=A6?= <465615774@qq.com> Date: Thu, 14 May 2020 14:25:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=8E=B7=E5=8F=96=E6=9C=80?= =?UTF-8?q?=E5=B0=8F=E5=80=BC=E5=87=BA=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../work/selenium/element/DataListElement.java | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/main/java/pres/auxiliary/work/selenium/element/DataListElement.java b/src/main/java/pres/auxiliary/work/selenium/element/DataListElement.java index 5784e3f..3adf8a5 100644 --- a/src/main/java/pres/auxiliary/work/selenium/element/DataListElement.java +++ b/src/main/java/pres/auxiliary/work/selenium/element/DataListElement.java @@ -388,21 +388,15 @@ public class DataListElement extends AbstractElement { //根据参数,判断获取的列是否为最大值所在的列,并对极值做进一步判断 if (maxColumnSize < size) { - - if (maxColumnSize < size) { - maxColumnNameList.clear(); - maxColumnSize = size; - } + maxColumnNameList.clear(); + maxColumnSize = size; maxColumnNameList.add(key.name); } else { - //对比当前存储的最小值与列的元素个数,其操作与求取最大值相反 - if (minColumnSize < size) { - return; - } - if (minColumnSize > size) { minColumnNameList.clear(); minColumnSize = size; + } else { + return; } minColumnNameList.add(key.name); }