Skip to content

refactor: printing of lists in DefaultJavaPrettyPrinter#1956

Merged
monperrus merged 1 commit intoINRIA:masterfrom
pvojtechovsky:refDJPPLists
Apr 12, 2018
Merged

refactor: printing of lists in DefaultJavaPrettyPrinter#1956
monperrus merged 1 commit intoINRIA:masterfrom
pvojtechovsky:refDJPPLists

Conversation

@pvojtechovsky
Copy link
Copy Markdown
Collaborator

This code is a side effect of my experiments with printing of changes #1927. I though that I will need to know, which list is actually printed by DJPP, so I implemented that ElementPrinterHelper#printList.
Now I see it is not needed, but the code of this PR doesn't look bad from my point of view.

So if you like it, take it. Otherwise close this PR - I do not need that.

This PR also moves printing of method modifier "default" into ElementPrinterHelper#writeModifiers

@spoon-bot
Copy link
Copy Markdown
Collaborator

API changes: 1 (Detected by Revapi)

Old API: fr.inria.gforge.spoon:spoon-core:jar:6.3.0-20180405.225214-41 / New API: fr.inria.gforge.spoon:spoon-core:jar:6.3.0-SNAPSHOT

visibility reduced
Old method ElementPrinterHelper#createListPrinter(boolean, String, boolean, boolean, String, boolean, boolean, String)
New method ElementPrinterHelper#createListPrinter(boolean, String, boolean, boolean, String, boolean, boolean, String)
Breaking binary: breaking,

@monperrus
Copy link
Copy Markdown
Collaborator

ok for me, refactoring PRs are always welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants