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

Reduce visibility of DefaultRefreshable #14

Merged
merged 5 commits into from
May 5, 2020

Conversation

iamdanfox
Copy link
Contributor

@iamdanfox iamdanfox commented May 5, 2020

Before this PR

We currently expose the DefaultRefreshable class (which is final), and also its public constructor, new DefaultRefreshable<>(foo). This is bad because it limits our ability to swap implementations under the hood if we wanted to.

After this PR

==COMMIT_MSG==
The DefaultRefreshable final class is no longer exposed, instead users should rely on Refreshable.create and the SettableRefreshable interface.
==COMMIT_MSG==

After merging this I'd be happy to 1.0

Possible downsides?

@changelog-app
Copy link

changelog-app bot commented May 5, 2020

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

The DefaultRefreshable final class is no longer exposed, instead users should rely on Refreshable.create and the SettableRefreshable interface.

Check the box to generate changelog(s)

  • Generate changelog entry

@policy-bot policy-bot bot requested a review from fawind May 5, 2020 02:13
@iamdanfox iamdanfox requested review from ferozco and carterkozak and removed request for fawind May 5, 2020 02:13
@bulldozer-bot bulldozer-bot bot merged commit f86a91e into develop May 5, 2020
@bulldozer-bot bulldozer-bot bot deleted the dfox/reduce-visibility branch May 5, 2020 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants