File tree Expand file tree Collapse file tree 4 files changed +14
-2
lines changed
android/src/main/java/net/servicestack/client
client/src/main/java/net/servicestack/client Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1+ package net .servicestack .client ;
2+
3+ public interface IMeta {
4+ }
Original file line number Diff line number Diff line change @@ -62,11 +62,13 @@ public static Double tryParseDouble(String str) {
6262 }
6363
6464 static final String KotlinAnnotationClass = "kotlin.jvm.internal.KotlinClass" ;
65+ static final String KotliMetadataClass = "kotlin.Metadata" ;
6566
6667 public static boolean isKotlinClass (Class type )
6768 {
6869 for (Annotation attr : type .getAnnotations ()){
69- if (KotlinAnnotationClass .equals (attr .annotationType ().getName ()))
70+ String annotationName = attr .annotationType ().getName ();
71+ if (KotlinAnnotationClass .equals (annotationName ) || KotliMetadataClass .equals (annotationName ))
7072 return true ;
7173 }
7274 return false ;
Original file line number Diff line number Diff line change 1+ package net .servicestack .client ;
2+
3+ public interface IMeta {
4+ }
Original file line number Diff line number Diff line change @@ -62,11 +62,13 @@ public static Double tryParseDouble(String str) {
6262 }
6363
6464 static final String KotlinAnnotationClass = "kotlin.jvm.internal.KotlinClass" ;
65+ static final String KotliMetadataClass = "kotlin.Metadata" ;
6566
6667 public static boolean isKotlinClass (Class type )
6768 {
6869 for (Annotation attr : type .getAnnotations ()){
69- if (KotlinAnnotationClass .equals (attr .annotationType ().getName ()))
70+ String annotationName = attr .annotationType ().getName ();
71+ if (KotlinAnnotationClass .equals (annotationName ) || KotliMetadataClass .equals (annotationName ))
7072 return true ;
7173 }
7274 return false ;
You can’t perform that action at this time.
0 commit comments