jean pierre Lerbscher

Results 339 comments of jean pierre Lerbscher

> Instead of traversing all the nodes and handle them one by one You don't need to iterate through all the nodes just traversing the ClassOrInterfaceType nodes should be enough

Maybe you could give us a simple test case that reproduces your problem.

I don't see any problem. @Test void issue4132() { String code = "import java.io.File;\n" + "public class testClass {\n" + " public void test(){\n" + " String sep = File.separator;...

I'm closing this exit because there has been no interaction since the last discussion.

As you are creating a new instance of CompilationUnit, you need to initialise the comments. compilationUnit.getComment().ifPresent(c-> setComment(c));

The new website is hosted on GitHub Pages via https://github.com/javaparser/javaparser.github.io

Hi, there is nothing planned to handle comments differently. Attached is an article describing how comments are handled in javaparser https://tomassetti.me/java-comments-parsing/

Thank you for your suggestion but it seems to me that this subject should be taken care of by the JP team.

Hi @nahsra Unfortunately LPP has over the years reached a significant level of complexity and the formatting rules are not clearly identified. I will look into this problem as soon...