Skip to content
DevMeme
6869 of 7435
Suspicious Indentation After If Statement Triggers Among Us Emergency Meeting
Bugs Post #7530, on Dec 10, 2025 in TG

Suspicious Indentation After If Statement Triggers Among Us Emergency Meeting

Description

A two-part meme combining a Java code snippet with an Among Us 'Emergency Meeting' scene. The top portion shows Java code in a dark IDE: 'arr.clear();' followed by 'if(arr.isEmpty()) System.out.println("The list is empty!");' and then 'ArrayList<Integer> l = new ArrayList<Integer>(List.of(1,2,3,4)); // From a...' with a yellow lightbulb IDE warning tooltip reading 'Suspicious indentation after if statement'. The code has a classic indentation trap where the second line after the if-statement appears to be inside the if-block due to indentation but is actually unconditional. Below is the iconic red Among Us crewmate character slamming the emergency meeting button with large white text reading 'EMERGENCY MEETING'. The devme.me watermark appears in the bottom right

Comments

20
Anonymous ★ Top Pick Apple's goto fail; bug cost them a CVE. This developer's goto fail is costing them an emergency meeting. At least in Among Us, the impostor is easier to identify than a braceless if-block
  1. Anonymous ★ Top Pick

    Apple's goto fail; bug cost them a CVE. This developer's goto fail is costing them an emergency meeting. At least in Among Us, the impostor is easier to identify than a braceless if-block

  2. Deleted Account 7mo

    Don't Understand Shit

    1. @realVitShadyTV 7mo

      Java

  3. @p0ckemon 7mo

    java? not Zig?

  4. @Bonessssss 7mo

    ahhh yess PeePee<PooPoo> peePeePooPoo = new PeePee<PooPoo>(pee, pee, poo, poo); so eXpLiCiT

    1. @SamsonovAnton 7mo

      I love explicit language! (pun intended)

    2. @mihanizzm 7mo

      Java generics is the only thing that scares me every time I touch it

      1. @azizhakberdiev 7mo

        implicit types 👻

    3. @Algoinde 7mo

      Does java not have var or new()?

      1. @TheFloofyFloof 7mo

        they did add it very late

        1. @TheFloofyFloof 7mo

          i think linters consider it bad practice for java

        2. @itsTyrion 5mo

          Java 10. we're at 25 or smth this is intentional for the meme, "List.of()" didn't exist in that way back in like, java 6

      2. @Bonessssss 7mo

        It has var, I don't get what you mean by "new()" It's just that in the code snippet from the post var isn't used

      3. @mihanizzm 7mo

        It has, but type inference in Java isn't a good one, so usually you use var just to avoid writing the same long type name twice in a line where you create a variable

        1. @mihanizzm 7mo

          imo

  5. @JoseAngelSanchez 7mo

    Join the curly braces in code protection program. Do not let them disappear. They save lives.

    1. @M_Ali_S_S 7mo

      So java had brackets and decided to go the pyhton way ?

      1. @JoseAngelSanchez 7mo

        Java allows you to omit them (as many other languages) but it's more prone to bugs. Remember Heartbleed security issue... something curly braces easily would avoid if ((err = SSLHashSHA1.update(&hashCtx, &signedParams)) != 0) goto fail; goto fail;

        1. @feedable 7mo

          ... as would -Wmisleading-indentation

      2. @feedable 7mo

        they are the same as c: the cf statements have one substatement (or two in case of if ... else ...), but that statement may be a block-statement

Use J and K for navigation