mirror of
https://github.com/fankes/moshi.git
synced 2025-10-20 08:29:22 +08:00
Deprecate Types.getFieldJsonQualifierAnnotations (#1440)
This commit is contained in:
@@ -276,7 +276,10 @@ public final class Types {
|
|||||||
* @param fieldName the target field name on {@code clazz}.
|
* @param fieldName the target field name on {@code clazz}.
|
||||||
* @return a set of {@link JsonQualifier}-annotated {@link Annotation} instances retrieved from
|
* @return a set of {@link JsonQualifier}-annotated {@link Annotation} instances retrieved from
|
||||||
* the targeted field. Can be empty if none are found.
|
* the targeted field. Can be empty if none are found.
|
||||||
|
* @deprecated this is no longer needed in Kotlin 1.6.0 (which has direct annotation
|
||||||
|
* instantiation) and is obsolete.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public static Set<? extends Annotation> getFieldJsonQualifierAnnotations(
|
public static Set<? extends Annotation> getFieldJsonQualifierAnnotations(
|
||||||
Class<?> clazz, String fieldName) {
|
Class<?> clazz, String fieldName) {
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user