[go: nahoru, domu]

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

Add proper lazy initialization for CloudPermissionsPermissionManagement#getInstance() #39

Merged
merged 1 commit into from Jun 24, 2019

Conversation

ghost
Copy link
@ghost ghost commented Jun 24, 2019
  • breaking changes
  • no breaking changes

changes made to the repository

  • Modified CloudPermissionsPermissionManagement#getInstance() to properly lazy-initialize the CloudPermissionsPermissionManagement#instance field upon function invocation

The lazy getter uses a ternary operation (x == false ? doA() : doB()) instead of a traditional if-else.

related issues/discussions

#37

@juliarn juliarn merged commit ec5a194 into CloudNetService:development Jun 24, 2019
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

1 participant