gson-comments/extras/src/test/java/com/google/gson
Éamonn McManus 2deb2099d3
Make RuntimeTypeAdapterFactory recognize subclasses only conditionally. (#2160)
PR #2139 changed this factory so that if given a certain baseType, it will also
recognize any subtype of that type. That is often the right thing to do, but it
is a change in behaviour, and does in fact break at least one current client of
this code. So instead we introduce a new `recognizeSubclasses()` method that
triggers this behaviour. When the method is not called, we revert to the old
behaviour of only recognizing instances of the exact class `baseType`.
2022-07-27 12:18:20 -07:00
..
graph Use diamond operator when creating generic instances (#2104) 2022-04-17 15:27:21 -07:00
interceptors Add CodeQL GitHub code scanning workflow (#2076) 2022-02-17 18:40:40 -08:00
typeadapters Make RuntimeTypeAdapterFactory recognize subclasses only conditionally. (#2160) 2022-07-27 12:18:20 -07:00