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

Remove repetitive code from JDIModelPresentation #575

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gzsombor
Copy link
Contributor

and using smart instanceof to remove clutter

What it does

Eliminate the very verbose and repetitive image handling code - that looks up based on JavaDebugImages or IDebugUIConstants constants the actual ImageDescriptors and Image objects.
And eliminate a lot of redundant casts with using ' instanceof' patterns.

How to test

Run it, it shouldn't change any visible behaviour.

Author checklist

and using smart instanceof to remove clutter
@akurtakov
Copy link
Contributor

My only concern with this PR is making methods/members private and the possibility that this might break something in the SDK (not checked). Do you think you can drop that part so we can land it in without worries ?

@jukzi
Copy link
Contributor

jukzi commented Dec 12, 2024

My only concern with this PR is making methods/members private a

This PR changes "internal" packages only. So it should not break anything else. If it does we can revert.

@akurtakov
Copy link
Contributor

My request was exactly so a revert of the whole change can be skipped as the breakage is more likely to come from public to private change.

@gzsombor
Copy link
Contributor Author

I've reverted method privatization. What needs to be built in order to check that those methods are not used outside this repository?

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