Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Make some helper methods protected in DefaultPrettyPrinterVisitor #4729

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

Conversation

johanneskloos
Copy link
Contributor

This PR has been spun off from the closed #4717.

Making these helper methods protected makes it much easier to override visitor methods in customer pretty-printer visitors.

Copy link

codecov bot commented Apr 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.303%. Comparing base (a0cab53) to head (d6958b0).
Report is 6 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##              master     #4729   +/-   ##
===========================================
  Coverage     58.303%   58.303%           
  Complexity      2512      2512           
===========================================
  Files            671       671           
  Lines          38761     38761           
  Branches        7031      7031           
===========================================
  Hits           22599     22599           
  Misses         13270     13270           
  Partials        2892      2892           
Flag Coverage Δ
AlsoSlowTests 58.303% <ø> (ø)
javaparser-core 58.303% <ø> (ø)
javaparser-symbol-solver 58.303% <ø> (ø)
jdk-10 57.854% <ø> (ø)
jdk-11 57.853% <ø> (ø)
jdk-12 57.853% <ø> (+0.002%) ⬆️
jdk-13 57.853% <ø> (ø)
jdk-14 58.101% <ø> (+0.002%) ⬆️
jdk-15 58.101% <ø> (ø)
jdk-16 58.075% <ø> (ø)
jdk-17 58.230% <ø> (ø)
jdk-18 58.230% <ø> (ø)
jdk-8 57.855% <ø> (ø)
jdk-9 57.851% <ø> (ø)
macos-latest 58.295% <ø> (ø)
ubuntu-latest 58.290% <ø> (ø)
windows-latest 58.285% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...avaparser/printer/DefaultPrettyPrinterVisitor.java 92.967% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5e4f4fc...d6958b0. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This makes it much easier to override visitor methods
@johanneskloos johanneskloos force-pushed the make-some-pretty-printer-methods-protected branch from 6b838d2 to d6958b0 Compare April 15, 2025 06:11
@jlerbsc jlerbsc merged commit c30c24a into javaparser:master Apr 15, 2025
35 checks passed
@jlerbsc
Copy link
Collaborator

jlerbsc commented Apr 15, 2025

I have no objection to integrate these changes, even if the methods concerned are not intended to be overloaded.

@jlerbsc jlerbsc added this to the next release milestone Apr 15, 2025
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.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.