⁠
joe: Include much more detail in inspection descriptions
- <!--
- Minecraft Development for IntelliJ
-
- https://mcdev.io/
-
- Copyright (C) 2026 minecraft-dev
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Lesser General Public License as published
- by the Free Software Foundation, version 3.0 only.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>.
- -->
-
- <html>
- <body>
- Classes which are annotated with @SideOnly cannot contain any nested classes which are annotated with a different @SideOnly annotation. Since a class that is annotated with @SideOnly brings everything with it, @SideOnly annotated nested classes are usually useless.
- </body>
- </html>
- <!--
- Minecraft Development for IntelliJ
-
- https://mcdev.io/
-
- Copyright (C) 2026 minecraft-dev
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Lesser General Public License as published
- by the Free Software Foundation, version 3.0 only.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>.
- -->
-
- <html>
- <body>
- <p>
- Reports nested classes annotated with a different <code>@SideOnly</code> side than their containing class.
- </p>
- <!-- tooltip end -->
- <p>
- A class annotated with <code>@SideOnly</code> is removed together with everything in it on the other side, so a nested class
- can't be for a different side. <code>@SideOnly</code> annotations on nested classes are therefore usually useless.
- </p>
- <pre><code>
- @SideOnly(Side.CLIENT)
- public class Renderer {
- @SideOnly(Side.SERVER) // bad
- public static class Data { ... }
- }
- </code></pre>
- </body>
- </html>