Details
Description
In Jenkin's custom ReflectionConverter implementation, we'd like to read into transient fields (for backward compatibility when evolving classes) without writing transient fields.
To do this, we check if the field is defined in a given class. To do this efficiently, we created {{ReflectionProvider.getFieldOrNull(Class definedIn, String fieldName)}.
This method works like getField except that instead of throwing an exception (which is costly performance-wise), it returns null.
Note that this method defers from the fieldDefinedInClass method in that it still finds fields that are marked transient.
Patch attached. This method simply exposes what's already defined in FieldDictionary.fieldOrNull.