Files
openide/java/java-tests/testData/comment/to_javadoc/beforeMergeJavadocWIthEndOfLineAndBlock.java
Nikita Eshkeev c5b1182e6a IDEA-224332 Replace line comment before a method with a Javadoc comment
Adds a new intention with the name "replace with javadoc" that converts end-of-line comments and c-style block comments with javadoc comments.

The idea is to grab all the comments (left and right siblings) that belong to a PsiMember, squash them together and make a javadoc out of their combined content.

GitOrigin-RevId: b93bbab4a31d318c8b6e0557a7c6f88622f4abac
2021-03-31 19:13:43 +00:00

14 lines
252 B
Java

// "Replace with javadoc" "true"
class Main {
/**
* javadoc
*/
/*
hello, world
Goodbye
*/
// he*/llo
// world<caret>
private static final int i = 0;
}