Skip to content

Commit

Permalink
Deprecate Types.getFieldJsonQualifierAnnotations (#1440)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Dec 1, 2021
1 parent ace45a2 commit fb8c7b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions moshi/src/main/java/com/squareup/moshi/Types.java
Expand Up @@ -276,7 +276,10 @@ public static boolean equals(@Nullable Type a, @Nullable Type b) {
* @param fieldName the target field name on {@code clazz}.
* @return a set of {@link JsonQualifier}-annotated {@link Annotation} instances retrieved from
* 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(
Class<?> clazz, String fieldName) {
try {
Expand Down

0 comments on commit fb8c7b5

Please sign in to comment.