Skip to content

Commit e33c764

Browse files
committed
Post-merge #3343 fix to Javadoc
1 parent a826991 commit e33c764

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/main/java/com/fasterxml/jackson/databind/ser/BeanPropertyWriter.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -915,17 +915,14 @@ protected JsonSerializer<Object> _findAndAddDynamic(
915915
/**
916916
* Method that can be used to access value of the property this Object
917917
* describes, from given bean instance.
918-
* <p>
919-
* Note: method is final as it should not need to be overridden -- rather,
920-
* calling method(s) ({@link #serializeAsField}) should be overridden to
921-
* change the behavior
922918
*<p>
923919
* NOTE: was {@code final} until Jackson 2.19
924920
*/
925921
public Object get(Object bean) throws Exception
926922
{
927-
return (_accessorMethod == null) ? _field.get(bean) : _accessorMethod
928-
.invoke(bean, (Object[]) null);
923+
return (_accessorMethod == null)
924+
? _field.get(bean)
925+
: _accessorMethod.invoke(bean, (Object[]) null);
929926
}
930927

931928
/**

0 commit comments

Comments
 (0)