Skip to content

Commit

Permalink
💎💦
Browse files Browse the repository at this point in the history
  • Loading branch information
RawDiamondMC authored Oct 4, 2024
1 parent e8c788e commit 037e32a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ private ImmutableList<Field> getValidFields() {
private Map<String, ValueWithComment> serialize() {
ImmutableMap.Builder<String, ValueWithComment> builder = ImmutableMap.builder();
for (Field field : this.getValidFields()) {
ReflectUtil.makeAccessible(field);
ReflectionUtil.makeAccessible(field);

final String name = field.isAnnotationPresent(Name.class) ? field.getAnnotation(Name.class).value() : field.getName();
final String[] comments = field.isAnnotationPresent(Comments.class) ? (String[]) Arrays.stream(field.getAnnotation(Comments.class).value()).map(Comment::value).toArray() : new String[0];
Expand Down

0 comments on commit 037e32a

Please sign in to comment.