mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-98656 Java doc not generated when an other Java doc has been commented after.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
class Test {
|
||||
/**
|
||||
* <caret>
|
||||
*/
|
||||
void test() {
|
||||
}
|
||||
|
||||
// /**
|
||||
// *
|
||||
// * @param arg
|
||||
// */
|
||||
// public void secondMethod(int arg) {
|
||||
// }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
/**
|
||||
* <caret>Foo//bar */
|
||||
class Example{}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
class Test {
|
||||
/**<caret>
|
||||
void test() {
|
||||
}
|
||||
|
||||
// /**
|
||||
// *
|
||||
// * @param arg
|
||||
// */
|
||||
// public void secondMethod(int arg) {
|
||||
// }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
/** <caret>Foo//bar */
|
||||
class Example{}
|
||||
@@ -16,6 +16,8 @@ public class GenerateJavadocTest extends CodeInsightTestCase {
|
||||
public void test3() throws Exception { doTest(); }
|
||||
public void testIdeadev2328() throws Exception { doTest(); }
|
||||
public void testIdeadev2328_2() throws Exception { doTest(); }
|
||||
public void testBeforeCommentedJavadoc() throws Exception { doTest(); }
|
||||
public void testDoubleSlashInJavadoc() throws Exception { doTest(); }
|
||||
|
||||
private void doTest() throws Exception {
|
||||
String name = getTestName(false);
|
||||
|
||||
@@ -222,6 +222,9 @@ public class EnterHandler extends BaseEnterHandler {
|
||||
if (tokenType == commenter.getDocumentationCommentTokenType() || tokenType == commenter.getBlockCommentTokenType()) {
|
||||
return false;
|
||||
}
|
||||
if (tokenType == commenter.getLineCommentTokenType() && lexer.getTokenText().contains(commentPrefix)) {
|
||||
return false;
|
||||
}
|
||||
if (lexer.getTokenEnd() == commentText.length()) {
|
||||
if (tokenType == commenter.getLineCommentTokenType()) {
|
||||
String prefix = commenter.getLineCommentPrefix();
|
||||
|
||||
Reference in New Issue
Block a user