Useless Java Inspection
What steps will reproduce the issue? Consider this Java code: //noinspection SwitchStatementWithTooFewBranches switch ((Object) args[0]) { default -> {} case String s && true -> {} } The true condition does not do anything! Muda, muda, muda! Useless! Useless! Useless! Useless! Useless! Useless! Useless! Useless! Useless! Useless! What is the expected result? I wish there could be an inspection for removing it! What happens instead? It survives IDEA's inspection!!
A Java code snippet shows a redundant true condition that does nothing, followed by Dio from JoJo dramatically shouting “Useless!” and “Muda!” The joke is that the IDE inspection fails to remove or flag the useless condition, so the unwanted code survives. This is used as a reaction to stubborn bugs, pointless code, or tools ignoring an obvious issue. EN: A Java code snippet shows a redundant true condition that does nothing, followed by Dio from JoJo dramatically shouting “Useless!” and “Muda!” The joke is that the IDE inspection fails to remove or flag the useless condition, so the unwanted code survives. This is used as a reaction to stubborn bugs, pointless code, or tools ignoring an obvious issue.
Java code snippet / фрагмент кода JavaIDE inspection message / сообщение инспекции IDEcomputer code editor / редактор кодаanime character / персонаж анимеblond man / светловолосый мужчинаdramatic pose / драматичная позаraised arms / поднятые рукиgolden hair / золотистые волосыbrown clothing / коричневая одеждаknife / ножmotion lines / линии движенияsubtitles / субтитры
- @ithueti / 11848 2024-02-15
- Template
- Dio yelling “Muda”
- Type
- image
- Size
- 766×800 · 101.3 KiB
- Mood
- саркастичный, абсурдный
- Language
- en
- Added