4 ms·
No doubt, though I would argue those are the exception rather than the rule... which is why it should be an ignorable warning, preferably requiring a code annot
by zzalpha 9y ago
No doubt, though I would argue those are the exception rather than the rule... which is why it should be an ignorable warning, preferably requiring a code annotation to turn it off. But it absolutely be something a modern IDE should flag as a potential error (IntelliJ, for example, has whole classes of these types of inspections for Java, Kotlin, etc).
- seanmcdirmid 9y agoIf the false positive rate was even just 1 or 2%, it might be too noisy to warn about. Perhaps an annotation to opt out would be more apt.