Results 542 comments of rnveach

Examples don't show but what if there is an else to the if or things besides the if statement? Are we going to print no violation?

> if elif else will be more readable than using when However I don't have a strong opinion on this so I am not sure. what do you think? I...

Identified at https://github.com/checkstyle/checkstyle/pull/15113#discussion_r1663471696 , The bytecode when using `when` is nearly identical to just using an nested if statement inside the case. Edit: There does seem to be a performance...

For my clarity, what is the actual difference between using `->` and `:` for the cases. Is it a delayed execution thing or ...? Our tree calls the `->` a...

> the difference is : Requires break statements to prevent fall-through. while with -> no need for break statements and no fall-through. and in switch expressions -> can be used...

Configuration is missing from issue but this is covered under `LITERAL_CASE`.

IDENTs are `PATTERN_VARIABLE_DEF`, so it makes sense it already support records. I am good with adding an input file.

@mahfouz72 How are we currently supporting this if users want to turn this feature on/off. Is this covered by `LAMBDA`?

Can you show some violations on default (`:` and `->`)?

It looks like we are dropping defaults and cases with no statements inside it. ```` $ cat TestClass.java public class TestClass { void method() { switch (obj) { default :...