Skip to content

Commit f939ee9

Browse files
committed
Combine field attribute name checks in LazyAttributeLoadingInterceptor#handleWrite
1 parent 6bad486 commit f939ee9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

hibernate-core/src/main/java/org/hibernate/bytecode/enhance/spi/interceptor/LazyAttributeLoadingInterceptor.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ protected Object handleRead(Object target, String attributeName, Object value) {
6363

6464
@Override
6565
protected Object handleWrite(Object target, String attributeName, Object oldValue, Object newValue) {
66-
if ( !isAttributeLoaded( attributeName ) ) {
67-
attributeInitialized( attributeName );
68-
}
66+
attributeInitialized( attributeName );
6967
return newValue;
7068
}
7169

0 commit comments

Comments
 (0)