Skip to content

Commit d775440

Browse files
committed
Apply suggestion
1 parent 3f9e399 commit d775440

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/com/scalar/db/common/CommonDistributedStorageAdmin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ public void alterColumnType(
391391
if (currentColumnType == newColumnType) {
392392
return;
393393
}
394-
if (!isTypeConversionSupported(currentColumnType, newColumnType)) {
394+
if (!isTypeConversionValid(currentColumnType, newColumnType)) {
395395
throw new IllegalArgumentException(
396396
CoreError.INVALID_COLUMN_TYPE_CONVERSION.buildMessage(
397397
currentColumnType, newColumnType, columnName));
@@ -531,7 +531,7 @@ public void close() {
531531
admin.close();
532532
}
533533

534-
private boolean isTypeConversionSupported(DataType from, DataType to) {
534+
private boolean isTypeConversionValid(DataType from, DataType to) {
535535
if (from == to) {
536536
return true;
537537
}

0 commit comments

Comments
 (0)