File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
core/src/test/java/dev/morphia/test/lifecycle Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 1
1
package dev .morphia .test .lifecycle ;
2
2
3
- import java .lang .annotation .Annotation ;
4
3
import java .time .LocalDateTime ;
5
4
import java .time .Month ;
6
5
import java .util .Calendar ;
@@ -276,7 +275,7 @@ public boolean hasAnnotation(Class type) {
276
275
public void prePersist (@ NotNull Object ent , @ NotNull Document document , @ NotNull Datastore datastore ) {
277
276
DatastoreImpl ds = (DatastoreImpl ) datastore ;
278
277
final List <PropertyModel > fieldsToTest = ds .getMapper ().getEntityModel (ent .getClass ())
279
- .getProperties (NonNull .class );
278
+ .getProperties (NonNull .class );
280
279
for (PropertyModel mf : fieldsToTest ) {
281
280
if (mf .getValue (ent ) == null ) {
282
281
throw new NonNullValidationException (mf );
You can’t perform that action at this time.
0 commit comments