Skip to content

Commit

Permalink
Resolve PlaceholderData in ReflectionResolver to themselves
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpartsch committed Aug 21, 2023
1 parent b382c73 commit a80417f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
}

group 'com.docutools'
version = '1.6.5'
version = '1.6.6'

java {
toolchain {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,8 @@ private Optional<PlaceholderData> resolveSimplePlaceholder(Object property, Stri
} else {
return Optional.of(new ScalarPlaceholderData<>(enumProperty));
}
} else if (property instanceof PlaceholderData placeholderData) {
return Optional.of(placeholderData);
} else if (isFieldAnnotatedWith(bean.getClass(), placeholderName, Translatable.class)) {
return getObjectTranslation(placeholderName, locale, options);
} else if (property instanceof Enum || property instanceof String || ReflectionUtils.isWrapperType(property.getClass())) {
Expand Down

0 comments on commit a80417f

Please sign in to comment.