Matthias Geisler
04/29/2022, 6:51 AMgetSymbolsWithAnnotation
with multiple deferring Annotation for a Class target.
Is it suppose to pick up only the first?@MockCommon
is the first I extract via getSymbolsWithAnnotation
and surprisingly it also contains `@Mock`and @MockShared
:Grégory Lureau
04/29/2022, 7:34 AMMatthias Geisler
04/29/2022, 7:40 AMGrégory Lureau
04/29/2022, 7:45 AMgetSymbolsWithAnnotation give you all symbols annotated with @MockCommonYou cannot find your class
Platform
without giving the annotation name of "MockCommon". Let's say you also annotate another class like Shared
with @MockCommon, then getSymbolsWithAnnotation will return [Platform, Shared].Matthias Geisler
04/29/2022, 8:06 AMgetSymbolsWithAnnotation
when I call it with the name for example of MockCommon will contain in the example above also the Annotated for Mock and MockShared. That would not be that bad, but if call it again for Mock or MockShared, those Annotated are not resolved.Grégory Lureau
04/29/2022, 8:07 AMMatthias Geisler
04/29/2022, 8:07 AMefemoney
04/29/2022, 8:36 AMPlatform
Matthias Geisler
04/29/2022, 8:39 AMefemoney
04/29/2022, 8:41 AMMatthias Geisler
04/29/2022, 8:44 AMefemoney
04/29/2022, 8:50 AMMatthias Geisler
04/29/2022, 8:51 AMefemoney
04/29/2022, 8:52 AMMatthias Geisler
04/29/2022, 8:56 AMefemoney
04/29/2022, 9:21 AMMatthias Geisler
04/29/2022, 9:39 AMefemoney
04/29/2022, 9:39 AMMatthias Geisler
04/29/2022, 9:41 AM@Retention(AnnotationRetention.SOURCE)
@Target(AnnotationTarget.CLASS)
efemoney
04/29/2022, 10:31 AMMatthias Geisler
04/29/2022, 11:54 AMefemoney
04/29/2022, 11:56 AMMatthias Geisler
04/29/2022, 12:21 PMJiaxiang
04/29/2022, 8:41 PM