@@ -53,7 +53,7 @@ public abstract class AuditingHandlerSupport {
53
53
*/
54
54
public AuditingHandlerSupport (PersistentEntities entities ) {
55
55
56
- Assert .notNull (entities , "PersistentEntities must not be null! " );
56
+ Assert .notNull (entities , "PersistentEntities must not be null" );
57
57
58
58
this .factory = new MappingAuditableBeanWrapperFactory (entities );
59
59
}
@@ -96,7 +96,7 @@ public void setDateTimeProvider(@Nullable DateTimeProvider dateTimeProvider) {
96
96
*/
97
97
protected final boolean isAuditable (Object source ) {
98
98
99
- Assert .notNull (source , "Source entity must not be null! " );
99
+ Assert .notNull (source , "Source entity must not be null" );
100
100
101
101
return factory .getBeanWrapperFor (source ).isPresent ();
102
102
}
@@ -109,7 +109,7 @@ protected final boolean isAuditable(Object source) {
109
109
*/
110
110
<T > T markCreated (Auditor <?> auditor , T source ) {
111
111
112
- Assert .notNull (source , "Source entity must not be null! " );
112
+ Assert .notNull (source , "Source entity must not be null" );
113
113
114
114
return touch (auditor , source , true );
115
115
}
@@ -122,7 +122,7 @@ <T> T markCreated(Auditor<?> auditor, T source) {
122
122
*/
123
123
<T > T markModified (Auditor <?> auditor , T source ) {
124
124
125
- Assert .notNull (source , "Source entity must not be null! " );
125
+ Assert .notNull (source , "Source entity must not be null" );
126
126
127
127
return touch (auditor , source , false );
128
128
}
@@ -163,7 +163,7 @@ private void touchAuditor(Auditor<?> auditor, AuditableBeanWrapper<?> wrapper, b
163
163
return ;
164
164
}
165
165
166
- Assert .notNull (wrapper , "AuditableBeanWrapper must not be null! " );
166
+ Assert .notNull (wrapper , "AuditableBeanWrapper must not be null" );
167
167
168
168
if (isNew ) {
169
169
wrapper .setCreatedBy (auditor .getValue ());
@@ -183,11 +183,11 @@ private void touchAuditor(Auditor<?> auditor, AuditableBeanWrapper<?> wrapper, b
183
183
*/
184
184
private Optional <TemporalAccessor > touchDate (AuditableBeanWrapper <?> wrapper , boolean isNew ) {
185
185
186
- Assert .notNull (wrapper , "AuditableBeanWrapper must not be null! " );
186
+ Assert .notNull (wrapper , "AuditableBeanWrapper must not be null" );
187
187
188
188
Optional <TemporalAccessor > now = dateTimeProvider .getNow ();
189
189
190
- Assert .notNull (now , () -> String .format ("Now must not be null! Returned by: %s! " , dateTimeProvider .getClass ()));
190
+ Assert .notNull (now , () -> String .format ("Now must not be null Returned by: %s" , dateTimeProvider .getClass ()));
191
191
192
192
now .filter (__ -> isNew ).ifPresent (wrapper ::setCreatedDate );
193
193
now .filter (__ -> !isNew || modifyOnCreation ).ifPresent (wrapper ::setLastModifiedDate );
0 commit comments