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

Fields migrate state private2protected #452

Conversation

psharma-gdal
Copy link
Contributor

PR Checklist

What is the current behavior?

PreferencesFX project has sources from FormsFX project for various controls. These fields have been made public in latest versions of same sources under FormsFX (https://github.com/dlsc-software-consulting-gmbh/FormsFX/pull/28/files#diff-417ae9bbd300ffa2be7fb7c286928a1dd4629cce71d656205fc12739e33796b9). Due to these fields still having Private modifiers within sources in PreferencesFX, its not possible to access those from derived classes in order to add listeners.

What is the new behavior?

I have modified the private fields to protected to access those by derived classes. This is in line with the latest changes in the same source files in latest revisions of FormsFX (https://github.com/dlsc-software-consulting-gmbh/FormsFX/pull/28/files#diff-417ae9bbd300ffa2be7fb7c286928a1dd4629cce71d656205fc12739e33796b9). This allows users to access them from derived
classes in order to add listeners.

@VirtualTim
Copy link
Contributor

@dlemmermann What do you think about this PR?
At a glance I can't see any reason those fields should be left private.

@dlemmermann dlemmermann merged commit fbab2a3 into dlsc-software-consulting-gmbh:master-11 Jan 8, 2024
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.

None yet

3 participants