mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-20 03:20:56 +07:00
Usually leading asterisks of a javadoc are aligned so the common indent for the lines in a snippet's body is obvious, but nevertheless javadoc can have multiple leading asterisks, and they don't have to be aligned. This patch fixes the indent stripping: if the indent is too short, which will result in leaving some leading asterisks after stripping the indent from the line, the indent gets increased, so it goes after the last leading asterisk in the line. GitOrigin-RevId: c79bcb3e25b96b5b1ff52da350f926673d155199
16 lines
275 B
Java
16 lines
275 B
Java
// "JAVA" "true"
|
|
|
|
class InjectJava {
|
|
/**
|
|
* {@snippet<caret> :
|
|
* class Main {
|
|
* void f(Optional<Object> e) {
|
|
* if (v.isPresent()) {
|
|
* System.out.println("v: " + v.get());
|
|
* }
|
|
* }
|
|
* }
|
|
* }
|
|
*/
|
|
void g() {}
|
|
} |