Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,44 @@ public class UnusedWithComment {}
.doTest();
}

@Test
public void removal_markdownJavadocs() {
refactoringHelper
.addInputLines(
"UnusedWithComment.java",
"""
package unusedvars;

public class UnusedWithComment {
/// Method comment
private void test1() {}

/// First line of method comment
/// Second line of method comment
private void test2() {}

// Keep this comment

/// First line of method comment
///
/// Second line of method comment
private void test3() {}
}
""")
.addOutputLines(
"UnusedWithComment.java",
"""
package unusedvars;

public class UnusedWithComment {

// Keep this comment

}
""")
.doTest();
}

@Test
public void usedInLambda() {
helper
Expand Down
Loading