This post was brought to you by this PMD rule.

Transcription

Why do we have this stupid code analyzer rule enabled anyway? Nobody writes code like this…

After telling them the lore why it’s there:

You have seen such things before?

11 Times, as a matter of fact

  • ryannathans@aussie.zone
    link
    fedilink
    arrow-up
    37
    ·
    5 days ago

    It’s not picky, needlessly creating objects makes the garbage collector run a lot more. Especially if it’s invoked frequently like Minecraft recreating the object for every block on the screen for every frame to render. The garbage collector is largely responsible for lag of up to a second occurring at random times.