Open ghost opened 7 years ago
Do you mean to reuse cases like this?
case 6566:return JA_L.T1("[Ljava/lang/annotation/Annotation;", (new my.context.annotations.Bean_Impl_()).my_context_annotations_Bean_Impl_init__Z_V(true));
case 6567:return JA_L.T1("[Ljava/lang/annotation/Annotation;", (new my.context.annotations.Bean_Impl_()).my_context_annotations_Bean_Impl_init__Z_V(false));
case 6576:return JA_L.T1("[Ljava/lang/annotation/Annotation;", (new my.context.annotations.Bean_Impl_()).my_context_annotations_Bean_Impl_init__Z_V(true));
-->
case 6567:return JA_L.T1("[Ljava/lang/annotation/Annotation;", (new my.context.annotations.Bean_Impl_()).my_context_annotations_Bean_Impl_init__Z_V(false));
case 6566, 6576:return JA_L.T1("[Ljava/lang/annotation/Annotation;", (new my.context.annotations.Bean_Impl_()).my_context_annotations_Bean_Impl_init__Z_V(true));
yes, right
We can have a HashMap of the annotations linked to a case or something. Kotlin data class
implement hashCode and equals to compare them and use in maps. I can check it.
Will be great, i try today linked result with starting point, but lose =) For me need more learning kotlin =)
my
getClassAnnotations
see asI not found solution for detect duplicates in kotlin. Best solution if create function for any unique case, and re-use in other, size function will be 10x smaller. Also same case for
getFieldAnnotations
. I think always annotations use multiply.