Skip to content

In order to support the loading of addons generators and decorators. #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 10, 2017

Conversation

Z7oussem
Copy link
Contributor

Requirements

  • Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
  • All new code requires tests to ensure against regressions

Description of the Change

  • Support the loading of addons generators and decorators. …
  • All sonar violations removed.

Alternate Designs

Why Should This Be In Core?

Benefits

Possible Drawbacks

Applicable Issues

@coveralls
Copy link

Coverage Status

Coverage remained the same at 0.0% when pulling 093840b on Z7oussem:master into 2a103be on JsonSchema-JavaUI:master.

Copy link
Member

@SaifJerbi SaifJerbi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check my comments and fix the changes requests before i merge your code

private static Reflections reflections = new Reflections(PACKAGESCAN);

void load() {
reflections.getSubTypesOf(FormDefinitionGenerator.class).stream().forEach(subtype -> register(subtype));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Z7oussem You did'nt like Streams ?

private static Reflections reflections = new Reflections(PACKAGESCAN);

void load() {
reflections.getSubTypesOf(SchemaDecorator.class).stream().forEach(subtype -> register(subtype));
for (Class<? extends SchemaDecorator> subType : reflections.getSubTypesOf(SchemaDecorator.class)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Z7oussem we must use Stream API instead of class iteration

@SaifJerbi SaifJerbi merged commit d781aa5 into JsonSchema-JavaUI:master Jun 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants