bowbahdoe / magic-bean

A very basic library which will generate getters and setters.
Other
84 stars 10 forks source link

Give a specific error if used on interfaces #2

Closed bowbahdoe closed 2 years ago

bowbahdoe commented 2 years ago

From @Pante

I don’t think this check is enough since TypeElement includes interfaces as well. Probably need to check the ElementKind. Also probably want to check that the class isn’t abstract as well. https://github.com/bowbahdoe/magic-bean/blob/main/src/main/java/dev/mccue/magicbean/processor/AnnotationProcessor.java#L132

bowbahdoe commented 2 years ago

Not really important enough - If someone runs into this IRL we can tackle it