File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/main/java/org/springframework/data/jpa/domain/support Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 18
18
import javax .persistence .PrePersist ;
19
19
import javax .persistence .PreUpdate ;
20
20
21
- import java .util .Optional ;
22
-
23
21
import org .springframework .beans .factory .ObjectFactory ;
24
22
import org .springframework .beans .factory .annotation .Configurable ;
25
23
import org .springframework .data .auditing .AuditingHandler ;
@@ -83,7 +81,7 @@ public void setAuditingHandler(ObjectFactory<AuditingHandler> auditingHandler) {
83
81
@ PrePersist
84
82
public void touchForCreate (Object target ) {
85
83
if (handler != null ) {
86
- handler .getObject ().markCreated (Optional . ofNullable ( target ) );
84
+ handler .getObject ().markCreated (target );
87
85
}
88
86
}
89
87
@@ -96,7 +94,7 @@ public void touchForCreate(Object target) {
96
94
@ PreUpdate
97
95
public void touchForUpdate (Object target ) {
98
96
if (handler != null ) {
99
- handler .getObject ().markModified (Optional . ofNullable ( target ) );
97
+ handler .getObject ().markModified (target );
100
98
}
101
99
}
102
100
}
You can’t perform that action at this time.
0 commit comments