From e1dfc732845e75c2669fa39d82fa8ad050a7c667 Mon Sep 17 00:00:00 2001 From: "Java.Edge" Date: Wed, 6 May 2020 11:45:55 +0800 Subject: [PATCH] REPORT-27998 bugfix use ArrayUtils.contains to simply code. --- .../design/data/datapane/TableDataNameObjectCreator.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/data/datapane/TableDataNameObjectCreator.java b/designer-base/src/main/java/com/fr/design/data/datapane/TableDataNameObjectCreator.java index 20df61791..3ff2ed51b 100644 --- a/designer-base/src/main/java/com/fr/design/data/datapane/TableDataNameObjectCreator.java +++ b/designer-base/src/main/java/com/fr/design/data/datapane/TableDataNameObjectCreator.java @@ -203,12 +203,7 @@ public class TableDataNameObjectCreator extends NameObjectCreator { TableDataSource source = DesignTableDataManager.getEditingTableDataSource(); allDSNames = DesignTableDataManager.getAllDSNames(source); } - for (String allDSName : allDSNames) { - if (ComparatorUtils.equals(name, allDSName)) { - return true; - } - } - return false; + return ArrayUtils.contains(allDSNames, name); } @Override