Skip to content

Commit fb96074

Browse files
committed
trivial code improvement
1 parent 7bb0292 commit fb96074

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

hibernate-core/src/main/java/org/hibernate/mapping/SimpleValue.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -866,18 +866,12 @@ public boolean hasAnyUpdatableColumns() {
866866

867867
@Override
868868
public boolean isColumnInsertable(int index) {
869-
if ( !insertability.isEmpty() ) {
870-
return insertability.get( index );
871-
}
872-
return false;
869+
return !insertability.isEmpty() && insertability.get( index );
873870
}
874871

875872
@Override
876873
public boolean isColumnUpdateable(int index) {
877-
if ( !updatability.isEmpty() ) {
878-
return updatability.get( index );
879-
}
880-
return false;
874+
return !updatability.isEmpty() && updatability.get( index );
881875
}
882876

883877
public boolean isPartitionKey() {

0 commit comments

Comments
 (0)