Jordan Kiesel
Jordan Kiesel
**Prettier-Java 1.6.1** ```sh # Options: --print-width 80 --tab-width 4 ``` **Input:** ```java package org.prettier.java; public class MyReallyLongClassName { public void method() { MyReallyLongClassName myReallyLongVariableName = new MyReallyLongClassName(); MyReallyLongClassName myReallyLongVariableName2 =...
## What changed with this PR: Constructors/methods with `throws` clauses now break on their comma-separated list of exception classes rather than violating printWidth, and the left curly brace of the...
## What changed with this PR: If/for/while/do/catch/switch statements whose parentheses have trailing comments are now formatted stably, and in general are formatted more closely to the way that Prettier JavaScript...
## What changed with this PR: Aligns the parser more closely with the JDK 22 spec, most notably fixing some rules that weren't properly supporting unnamed variables. ## Example ###...
## What changed with this PR: Argument "hugging" is now aligned much more closely with Prettier JavaScript. Specifically, lambdas without blocks are "huggable" again. ## Example ### Input ```java class...