Skip to content

Commit

Permalink
spotless apply something that somehow slipped through
Browse files Browse the repository at this point in the history
  • Loading branch information
evanchooly committed Jan 31, 2025
1 parent 05757a7 commit 692853a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package dev.morphia.test.lifecycle;

import java.lang.annotation.Annotation;
import java.time.LocalDateTime;
import java.time.Month;
import java.util.Calendar;
Expand Down Expand Up @@ -276,7 +275,7 @@ public boolean hasAnnotation(Class type) {
public void prePersist(@NotNull Object ent, @NotNull Document document, @NotNull Datastore datastore) {
DatastoreImpl ds = (DatastoreImpl) datastore;
final List<PropertyModel> fieldsToTest = ds.getMapper().getEntityModel(ent.getClass())
.getProperties(NonNull.class);
.getProperties(NonNull.class);
for (PropertyModel mf : fieldsToTest) {
if (mf.getValue(ent) == null) {
throw new NonNullValidationException(mf);
Expand Down

0 comments on commit 692853a

Please sign in to comment.