Skip to content

Commit 82e3e91

Browse files
committedNov 15, 2024·
fix regression bug in printer
regenerate meta-/model
1 parent b89f51c commit 82e3e91

File tree

657 files changed

+7989
-7986
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

657 files changed

+7989
-7986
lines changed
 

‎javaparser-core/src/main/java/com/github/javaparser/CommentsInserter.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,9 @@ void insertComments(Node node, TreeSet<Comment> commentsToAttribute) {
8282
2) be outside all children. They could be preceding nothing, a comment or a child.
8383
If they preceed a child they are assigned to it, otherwise they remain "orphans"
8484
*/
85-
List<Node> children = node.getChildNodes().stream().// Never attribute comments to modifiers.
86-
filter(n -> !(n instanceof Modifier)).collect(toList());
85+
// Never attribute comments to modifiers.
86+
List<Node> // Never attribute comments to modifiers.
87+
children = node.getChildNodes().stream().filter(n -> !(n instanceof Modifier)).collect(toList());
8788
boolean attributeToAnnotation = !(configuration.isIgnoreAnnotationsWhenAttributingComments());
8889
for (Node child : children) {
8990
TreeSet<Comment> commentsInsideChild = new TreeSet<>(NODE_BY_BEGIN_POSITION);

‎javaparser-core/src/main/java/com/github/javaparser/HasParentNode.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/**
2929
* An object that can have a parent node.
3030
*/
31-
public interface HasParentNode<T> extends Observable {
31+
public interface HasParentNode<T> extends Observable {
3232

3333
/**
3434
* Returns true if the parent has a parent

0 commit comments

Comments
 (0)