Skip to content

Commit

Permalink
typesAsFields; minor doc polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
ivy-rew committed Oct 14, 2024
1 parent 27c0fa6 commit dbec4d3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ Adds implementations of a generic type into the schema. It will use a virtual ty
@Implementations(ComponentTypes)
public Component component;


public static class ComponentTypes implements TypeReqistry {
@Override
public Set<Class<?>> types() {
Expand Down Expand Up @@ -148,8 +147,7 @@ This is perfect if you maintain a Map with well known keys in your Java objects.
public CheckTypes checks;

@TypesAsFields(Checks)
public interface CheckTypes implements Map<String, MyChecker>

public interface CheckTypes implements Map<String, MyChecker>{}

public static class Checks implements FieldRegistry {
@Override
Expand Down

0 comments on commit dbec4d3

Please sign in to comment.