2023-01-16 14:33:27 +01:00
|
|
|
Code:
|
|
|
|
(lambda ()
|
|
|
|
(setq indent-tabs-mode nil)
|
|
|
|
(setq java-ts-mode-indent-offset 2)
|
|
|
|
(java-ts-mode)
|
|
|
|
(indent-region (point-min) (point-max)))
|
|
|
|
|
|
|
|
Point-Char: |
|
|
|
|
|
|
|
|
Name: Basic
|
|
|
|
|
|
|
|
=-=
|
|
|
|
public class Basic {
|
|
|
|
public void basic() {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
=-=-=
|
|
|
|
|
|
|
|
Name: Empty Line
|
|
|
|
|
|
|
|
=-=
|
|
|
|
public class EmptyLine {
|
|
|
|
public void emptyLine() {
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
=-=-=
|
|
|
|
|
|
|
|
Name: Statements
|
|
|
|
|
|
|
|
=-=
|
|
|
|
if (x) {
|
|
|
|
for (var foo : foos) {
|
|
|
|
|
|
|
|
|
}
|
|
|
|
} else if (y) {
|
|
|
|
for (int i = 0; x < foos.size(); i++) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
=-=-=
|
2023-02-03 09:09:49 +01:00
|
|
|
|
|
|
|
Name: Field declaration without access modifier (bug#61115)
|
|
|
|
|
|
|
|
=-=
|
|
|
|
public class T {
|
|
|
|
@Autowired
|
|
|
|
String a;
|
|
|
|
}
|
|
|
|
=-=-=
|