MinecraftDev
MinecraftDev copied to clipboard
Automatically @SuppressWarnings("deprecation") for some special class/method, eg. BlockBehavior$canSurvive
Minecraft Development for IntelliJ plugin version
2022.3-1.6.3
Description of the feature request
SuppressWarnings for some special class/method, eg. BlockBehavior$canSurvive
This can be accomplish by 2 ways though
- Don't show warning is when overriding those special methods
- Automatically put @SuppressWarnings("deprecation") when overriding those special methods
Both will be a good idea!
Second one is preferred
Also you can determine if it's a real "deprecation" by if it's @Deprecated or @Deprecated(forRemoval = true)
I think a better solution would be for annotations to be changed by build tools (e.g. ForgeGradle and Loom), based on mappings, a little bit like how unpick works. Mojang misuses nullable as well.
Yeah true, it always hurts me when committing.