Browse Source

REPORT-27998 bugfix use ArrayUtils.contains to simply code.

feature/big-screen
Java.Edge 5 years ago
parent
commit
e1dfc73284
  1. 7
      designer-base/src/main/java/com/fr/design/data/datapane/TableDataNameObjectCreator.java

7
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(); TableDataSource source = DesignTableDataManager.getEditingTableDataSource();
allDSNames = DesignTableDataManager.getAllDSNames(source); allDSNames = DesignTableDataManager.getAllDSNames(source);
} }
for (String allDSName : allDSNames) { return ArrayUtils.contains(allDSNames, name);
if (ComparatorUtils.equals(name, allDSName)) {
return true;
}
}
return false;
} }
@Override @Override

Loading…
Cancel
Save