Skip to content

Commit 56ae257

Browse files
committed
Combine field attribute name checks in LazyAttributeLoadingInterceptor#handleWrite
1 parent 8f996ab commit 56ae257

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
@@ -62,9 +62,7 @@ protected Object handleRead(Object target, String attributeName, Object value) {
6262

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

0 commit comments

Comments
 (0)