CE-1072 feedback from code review & testing

This commit is contained in:
2024-04-05 15:21:32 -05:00
parent 8f503945cd
commit b608bda83a
2 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,7 @@ package com.kingsrook.qqq.backend.core.model.metadata.fields;
import java.util.Collections;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.kingsrook.qqq.backend.core.actions.values.ValueBehaviorApplier;
import com.kingsrook.qqq.backend.core.model.data.QRecord;
import com.kingsrook.qqq.backend.core.model.metadata.QInstance;
@ -47,6 +48,7 @@ public interface FieldBehavior<T extends FieldBehavior<T>>
** In case a behavior of this type wasn't set on the field, what should the
** default of this type be?
*******************************************************************************/
@JsonIgnore
T getDefault();
/*******************************************************************************

View File

@ -720,7 +720,7 @@ public class QFieldMetaData implements Cloneable
{
try
{
return behaviorType.getConstructor().newInstance().getDefault();
return (behaviorType.getConstructor().newInstance().getDefault());
}
catch(Exception e)
{