When running the java beautifier against a selection containing a lambda expression, the arrow token is incorrectly handled. Note that the first arrow token was broken apart and the second token lost its leading space.
Beautifying an entire file seems to work ok.
Before:
private void lookForSomething() {
try {
Files.walk(new File(".").toPath()).filter(p -> p.getFileName().toString().endsWith(".jazz")).forEach((Path path) -> {
System.out.println("Found one " + path);
});
} catch (IOException ex) {
System.out.println(".....");
}
}
After:
private void lookForSomething() {
try {
Files.walk(new File(".").toPath()).filter(p - > p.getFileName().toString().endsWith(".jazz")).forEach((Path path)-> {
System.out.println("Found one " + path);
});
} catch (IOException ex) {
System.out.println(".....");
}
}