Skip to content

Commit

Permalink
style: move value method on toString method
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
  • Loading branch information
otaviojava committed Jul 31, 2023
1 parent 7eba8e8 commit 61d0aa2
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ public <X, Y, T extends AttributeConverter<X, Y>> Optional<Class<? extends Attri
return Optional.ofNullable((Class<? extends AttributeConverter<X, Y>>) converter);
}

@Override
public Object value(Value value) {
return value.get(field.getType());
}

@Override
public String toString() {
return "AbstractFieldMetadata{" +
Expand All @@ -109,7 +114,5 @@ public String toString() {
'}';
}

public Object value(Value value) {
return value.get(field.getType());
}

}

0 comments on commit 61d0aa2

Please sign in to comment.