Skip to content

Lazy#65

Merged
tboehm-xdev merged 20 commits intodevelopfrom
lazy
Apr 24, 2024
Merged

Lazy#65
tboehm-xdev merged 20 commits intodevelopfrom
lazy

Conversation

@JohannesRabauer
Copy link
Copy Markdown
Member

No description provided.

Comment thread docs/modules/ROOT/pages/lazies.adoc
@SuppressWarnings("unchecked")
private Lazy<T> createNewDefaultLazyWithClearableReference()
{
Objects.requireNonNull(this.loader);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe move those requireNonNull lines to constructor?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is not valid. In the constructor it is valid to leave the loader to null (hence the other constructors). But the method is not allowed to get executed when the loader is null.

@sonarqubecloud
Copy link
Copy Markdown

@tboehm-xdev tboehm-xdev merged commit 170e35a into develop Apr 24, 2024
@tboehm-xdev tboehm-xdev deleted the lazy branch April 24, 2024 05:17
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