gson-comments/extras/src/main/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
..
extras/examples/rawcollections update RawCollectionsExample.java (#1953) 2021-09-07 08:02:04 -07:00
graph Use diamond operator when creating generic instances (#2104) 2022-04-17 15:27:21 -07:00
interceptors Use diamond operator when creating generic instances (#2104) 2022-04-17 15:27:21 -07:00
typeadapters Make RuntimeTypeAdapterFactory recognize subclasses only conditionally. (#2160) 2022-07-27 12:18:20 -07:00