Skip to content

Commit

Permalink
fix: Add extra newline after printing enum values (#5649)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderploegsma committed Feb 3, 2024
1 parent 67a9593 commit 1d55e5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,7 @@ public <T extends Enum<?>> void visitCtEnum(CtEnum<T> ctEnum) {
printer.writeln();
scan(enumValue);
});
printer.writeln();
}

elementPrinterHelper.writeElementList(ctEnum.getTypeMembers());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public void autoImportUsesFullyQualifiedNameWhenImportedNameAlreadyPresent() {

expected =
"public enum ENUM {" + nl + nl
+ " E1(spoon.test.prettyprinter.testclasses.sub.TypeIdentifierCollision.globalField, spoon.test.prettyprinter.testclasses.sub.TypeIdentifierCollision.ENUM.E1);" + nl
+ " E1(spoon.test.prettyprinter.testclasses.sub.TypeIdentifierCollision.globalField, spoon.test.prettyprinter.testclasses.sub.TypeIdentifierCollision.ENUM.E1);" + nl + nl
+ " final int NUM;" + nl + nl
+ " final Enum<?> e;" + nl + nl
+ " private ENUM(int num, Enum<?> e) {" + nl
Expand Down

0 comments on commit 1d55e5a

Please sign in to comment.