MinecraftDev
MinecraftDev copied to clipboard
Add inspection for targeting the same class multiple times in a mixin
Currently it's a weak warning
This is looking pretty good, there's a few things to note:
- this does not cover cases where a class literal and string target both reference the same class
- it would be nice to have some tests for this inspection, you can use
InvalidInjectorMethodSignatureInspectionTestas a reference. - you should be fine getting
PsiClass.mixinTargetsonce and pass it around, instead of hitting the cache again and again
Take a look at the latest commit