Skip to content

feat(config builder): add support for inherited config fields#458

Draft
dm94 wants to merge 1 commit into
darkbot-reloaded:masterfrom
dm94:feat/suppor-children-fields
Draft

feat(config builder): add support for inherited config fields#458
dm94 wants to merge 1 commit into
darkbot-reloaded:masterfrom
dm94:feat/suppor-children-fields

Conversation

@dm94

@dm94 dm94 commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

add support for configuration fields declared in superclasses, which were previously ignored by the config builder.

clean up code across the file:

  • remove unused java.util.Arrays and java.util.stream.Collectors imports
  • fix inconsistent indentation throughout ConfigBuilder.java
  • refactor the participates helper method to accept an allOptions parameter
  • rewrite the getChildren method to loop over the full class hierarchy instead of using streams
  • add support for per-class Configuration annotations to set parent key and allOptions flag per class

add support for configuration fields declared in superclasses, which were previously ignored by the config builder.

clean up code across the file:
- remove unused java.util.Arrays and java.util.stream.Collectors imports
- fix inconsistent indentation throughout ConfigBuilder.java
- refactor the participates helper method to accept an allOptions parameter
- rewrite the getChildren method to loop over the full class hierarchy instead of using streams
- add support for per-class Configuration annotations to set parent key and allOptions flag per class
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.

1 participant