Skip to content
New issue

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

refactor: DefaultJavaPrettyPrinter better uses OperatorHelper #1553

Merged
merged 3 commits into from
Sep 22, 2017

Conversation

pvojtechovsky
Copy link
Collaborator

@pvojtechovsky pvojtechovsky commented Sep 21, 2017

@monperrus
Copy link
Collaborator

RevApi detects that the move of ListHelper is not finsihed, one needs to make public ListPrinter createListPrinter package-protected. Let's do it here?

@spoon-bot
Copy link
Collaborator

Revapi Analysis results

Old API: fr.inria.gforge.spoon:spoon-core:jar:6.0.0-20170921.182338-36

New API: fr.inria.gforge.spoon:spoon-core:jar:6.0.0-SNAPSHOT

Detected changes: 1.

Change 1

Name Element
Old method spoon.reflect.visitor.ListPrinter spoon.reflect.visitor.PrinterHelper::createListPrinter(java.lang.String, java.lang.String, java.lang.String)
New method spoon.reflect.visitor.ListPrinter spoon.reflect.visitor.PrinterHelper::createListPrinter(java.lang.String, java.lang.String, java.lang.String)
Code java.method.visibilityReduced
Description visibility reduced
Breaking binary: breaking

@INRIA INRIA deleted a comment from spoon-bot Sep 21, 2017
@monperrus
Copy link
Collaborator

if a method is not the API we can remove it without depreciation, so we can remove the ones in PrinterHelper.

@monperrus
Copy link
Collaborator

here we clearly see the configuration that will be made possible with the indirection level of OperatorHelper.

I'm OK with it.

@spoon-bot
Copy link
Collaborator

Revapi Analysis results

Old API: fr.inria.gforge.spoon:spoon-core:jar:6.0.0-20170921.182338-36

New API: fr.inria.gforge.spoon:spoon-core:jar:6.0.0-SNAPSHOT

Detected changes: 6.

Change 1

Name Element
Old method spoon.reflect.visitor.ListPrinter spoon.reflect.visitor.PrinterHelper::createListPrinter(java.lang.String, java.lang.String, java.lang.String)
New method spoon.reflect.visitor.ListPrinter spoon.reflect.visitor.PrinterHelper::createListPrinter(java.lang.String, java.lang.String, java.lang.String)
Code java.method.visibilityReduced
Description visibility reduced
Breaking binary: breaking,

Change 2

Name Element
Old method void spoon.reflect.visitor.PrinterHelper::postWriteUnaryOperator(spoon.reflect.code.UnaryOperatorKind)
New none
Code java.method.removed
Description Method was removed.
Breaking binary: breaking,

Change 3

Name Element
Old method void spoon.reflect.visitor.PrinterHelper::preWriteUnaryOperator(spoon.reflect.code.UnaryOperatorKind)
New none
Code java.method.removed
Description Method was removed.
Breaking binary: breaking,

Change 4

Name Element
Old method void spoon.reflect.visitor.PrinterHelper::writeCharLiteral(java.lang.Character, boolean)
New none
Code java.method.removed
Description Method was removed.
Breaking binary: breaking,

Change 5

Name Element
Old method spoon.reflect.visitor.PrinterHelper spoon.reflect.visitor.PrinterHelper::writeOperator(spoon.reflect.code.BinaryOperatorKind)
New none
Code java.method.removed
Description Method was removed.
Breaking binary: breaking,

Change 6

Name Element
Old method void spoon.reflect.visitor.PrinterHelper::writeStringLiteral(java.lang.String, boolean)
New none
Code java.method.removed
Description Method was removed.
Breaking binary: breaking,

@monperrus monperrus changed the title refactor: DefaultJavaPrettyPrinter refactor: DefaultJavaPrettyPrinter better uses OperatorHelper Sep 21, 2017
@monperrus monperrus merged commit 5dbb9b6 into INRIA:master Sep 22, 2017
@pvojtechovsky pvojtechovsky deleted the refDJPP branch September 22, 2017 20:00
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