Skip to content

Commit

Permalink
Cleaned up use of some interfaces that were duplicated.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-waltermire committed Jul 8, 2024
1 parent 2f3d3bf commit 2d2d0e1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

package gov.nist.secauto.metaschema.databind.model.binding.metaschema;

import gov.nist.secauto.metaschema.core.model.IBoundObject;
import gov.nist.secauto.metaschema.core.model.IMetaschemaData;
import gov.nist.secauto.metaschema.core.model.JsonGroupAsBehavior;
import gov.nist.secauto.metaschema.core.util.ObjectUtils;
Expand All @@ -52,7 +51,7 @@
@MetaschemaAssembly(
name = "assembly-constraints",
moduleClass = MetaschemaModelModule.class)
public final class AssemblyConstraints implements IBoundObject, IModelConstraintsBase {
public final class AssemblyConstraints implements IModelConstraintsBase {
private final IMetaschemaData __metaschemaData;

@BoundAssembly(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

package gov.nist.secauto.metaschema.databind.model.binding.metaschema;

import gov.nist.secauto.metaschema.core.model.IBoundObject;
import gov.nist.secauto.metaschema.core.model.IMetaschemaData;
import gov.nist.secauto.metaschema.core.model.JsonGroupAsBehavior;
import gov.nist.secauto.metaschema.core.util.ObjectUtils;
Expand All @@ -51,7 +50,7 @@
@MetaschemaAssembly(
name = "field-constraints",
moduleClass = MetaschemaModelModule.class)
public final class FieldConstraints implements IBoundObject, IValueTargetedConstraintsBase {
public final class FieldConstraints implements IValueTargetedConstraintsBase {
private final IMetaschemaData __metaschemaData;

@BoundAssembly(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

package gov.nist.secauto.metaschema.databind.model.binding.metaschema;

import gov.nist.secauto.metaschema.core.model.IBoundObject;
import gov.nist.secauto.metaschema.core.model.IMetaschemaData;
import gov.nist.secauto.metaschema.core.model.JsonGroupAsBehavior;
import gov.nist.secauto.metaschema.core.util.ObjectUtils;
Expand All @@ -52,7 +51,7 @@
@MetaschemaAssembly(
name = "flag-constraints",
moduleClass = MetaschemaModelModule.class)
public final class FlagConstraints implements IBoundObject, IValueConstraintsBase {
public final class FlagConstraints implements IValueConstraintsBase {
private final IMetaschemaData __metaschemaData;

@BoundAssembly(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public String toString() {
@MetaschemaAssembly(
name = "assembly",
moduleClass = MetaschemaModelModule.class)
public static final class Assembly implements IBoundObject, IModelConstraintsBase {
public static final class Assembly implements IModelConstraintsBase {
private final IMetaschemaData __metaschemaData;

@BoundFlag(
Expand Down Expand Up @@ -414,7 +414,7 @@ public String toString() {
@MetaschemaAssembly(
name = "field",
moduleClass = MetaschemaModelModule.class)
public static final class Field implements IBoundObject, IValueConstraintsBase {
public static final class Field implements IValueConstraintsBase {
private final IMetaschemaData __metaschemaData;

@BoundFlag(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public Method getAfterDeserializeMethod() {

@Override
public IBoundObject deepCopyItem(IBoundObject item, IBoundObject parentInstance) throws BindingException {
IBoundObject instance = newInstance(() -> item.getMetaschemaData());
IBoundObject instance = newInstance(item::getMetaschemaData);

callBeforeDeserialize(instance, parentInstance);

Expand Down

0 comments on commit 2d2d0e1

Please sign in to comment.