Skip to content

Commit

Permalink
Imptove auditable api
Browse files Browse the repository at this point in the history
  • Loading branch information
ogesaku committed Apr 10, 2024
1 parent 8bfa27a commit 73e3cc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ jobs:
contents: read
pull-requests: write
steps:
- uses: actions/labeler@v4
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
4 changes: 2 additions & 2 deletions src/main/java/com/coditory/quark/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ default AuditableConfig auditable() {
return AuditableConfig.of(this);
}

default <T> T mapAuditable(@NotNull Function<Config, T> configMapper) {
default <T> T mapAuditable(@NotNull Function<AuditableConfig, T> configMapper) {
AuditableConfig auditableConfig = AuditableConfig.of(this);
T result = configMapper.apply(auditableConfig);
auditableConfig.failOnUnusedProperties();
return result;
}

default void consumeAuditable(@NotNull Consumer<Config> configConsumer) {
default void consumeAuditable(@NotNull Consumer<AuditableConfig> configConsumer) {
AuditableConfig auditableConfig = AuditableConfig.of(this);
configConsumer.accept(auditableConfig);
auditableConfig.failOnUnusedProperties();
Expand Down

0 comments on commit 73e3cc4

Please sign in to comment.