We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I prettyprint a CtMethod, comments that are in the class but not in the method are included.
public class CommentExample { // This is another comment public int method1() { //A comment } }
val launcher = Launcher() launcher.factory.environment.setCommentEnabled(true) launcher.addInputResource("src/main/resources/TestCases/comment.java") launcher.buildModel() launcher.model.processWith(ExtractClones()) class ExtractClones : AbstractProcessor<CtClass<*>>() { override fun process(element: CtClass<*>) { element.methods.forEach { println(it.prettyprint()) } } }
// This is another comment public int method1() { // A comment }
public int method1() { // A comment }
10.3.0
17
Windows 11
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When I prettyprint a CtMethod, comments that are in the class but not in the method are included.
Source code you are trying to analyze/transform
Source code for your Spoon processing
Actual output
Expected output
Spoon Version
10.3.0
JVM Version
17
What operating system are you using?
Windows 11
The text was updated successfully, but these errors were encountered: