File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -130,9 +130,9 @@ public void setColName (final List<String> colNames) {
130130 */
131131 public void replaceColName (String originalColName , String newColName ) {
132132 if (Utils .isEmpty (originalColName ) || Utils .isEmpty (newColName ))
133- throw new RuntimeException ("The param 'newColName' cannot be null or empty." );
133+ throw new RuntimeException ("The param 'originalColName' or ' newColName' cannot be null or empty." );
134134
135- if (! this . colNames . contains ( originalColName ) && this .colNames .contains (newColName ))
135+ if (this .colNames .contains (newColName ))
136136 throw new RuntimeException ("The newColName '" + newColName +"' already exists in table. Column names cannot be duplicated." );
137137
138138 if (this .colNames .contains (originalColName )) {
You can’t perform that action at this time.
0 commit comments