Skip to content

Commit

Permalink
Modify JavaDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
JooHyukKim committed May 18, 2023
1 parent 49f1673 commit 0b5e1af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ private void _addFieldMixIns(Class<?> mixInCls, Class<?> targetClass,

private boolean _isIncludableField(Field f)
{
// [databind#2787]: Allow `Enum` mixins
if (f.isEnumConstant()) {
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1231,13 +1231,13 @@ protected JsonSerializer<?> buildEnumSerializer(SerializationConfig config,
/**
* Helper method used in the serialization of an {@link Enum} to remove any self-referencing properties from
* the bean description before it is transformed into a JSON Object as configured by {@link JsonFormat.Shape#OBJECT}.
*
* Specifically, this method iterates through the properties of the bean description and removes any that are
* <p>
* Basically, this method iterates through the properties of the bean description and removes any that are
* an enum type and a subtype of the enum class to be serialized.
*
* @param beanDesc the bean description to remove Enum properties from.
*
* @since 2.16
* @since 2.16 : [databind#2787]: remove self-referencing enum fields introduced by annotation flattening of mixins
*/
private void _removeEnumSelfReferences(BasicBeanDescription beanDesc) {
Class<?> aClass = ClassUtil.findEnumType(beanDesc.getBeanClass());
Expand Down

0 comments on commit 0b5e1af

Please sign in to comment.