Not that great of an issue, but I tend to judge the “cleanness” of my projects based on the presence of any warnings.
Found this while messing with Xuggler.
If I write
fun foo() {
...
while(reader.readPacket() == null);
}
IntelliJ tells me that the semicolon is redundant and suggests that I remove it.
If I remove it, however, this is obviously invalid as the loop has no body.