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

Readability refactor #688

Conversation

rgallardo-netflix
Copy link
Contributor

Refactored code for readability. Split out most sections into self-contained methods with a single objective. Code is now longer, but less convoluted and with less anonymous nested things.

Cleaned up compiler warnings in main class and in the corresponding unit tests.

Refactored code for readability. Split out most sections into self-contained methods with a single objective. Code is now longer, but less convoluted and with less anonymous nested things.

Cleaned up compiler warnings in main class and in the corresponding unit tests.
Copy link
Contributor

@akang31 akang31 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes! This makes ConfigProxyFactory much more self-explanatory.


if (immutable) {
// Cache the current value of the property and always return that.
// Note that this will fail for parametrized properties!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a few instances where parameterized is misspelled parametrized

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh it looks like both are valid, but I think it'd be best if we stuck with one or the other regardless

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOL, thanks for catching this!

@rgallardo-netflix rgallardo-netflix merged commit e939ef5 into Netflix:2.x Oct 26, 2023
5 checks passed
@rgallardo-netflix rgallardo-netflix deleted the feature/config-proxy-cleanup-RG branch October 26, 2023 17:51
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