mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 17:51:09 +07:00
Implement updating the content of a snippet tag with the help from a method implementer. A snippet might invoke overriding a method though a completion and when a parent method is inserted it might contain javadoc. In this case it's impossible to recreate a snippet tag because the new text for the tag contains "/**" and "*/" that come from the parent method's javadoc. The implemented method implementer helps to strip a method's javadoc if it's present. Signed-off-by: Nikita Eshkeev <nikita.eshkeev@jetbrains.com> GitOrigin-RevId: 42b315ed2670701e50574a383f0442df69accd35
9 lines
229 B
Java
9 lines
229 B
Java
/** {<warning descr="'@snippet' tag is not available at this language level">@snippet</warning> :
|
|
* Optional<Integer> v = null;
|
|
* if (v.isPresent()) {
|
|
* System.out.println("v: " + v.get());
|
|
* }
|
|
* }
|
|
*/
|
|
class A {
|
|
} |