Skip to content

Conversation

@simpledumpling
Copy link
Owner


private static class LockFreeLazy<T> implements Lazy<T> {
private volatile T result;
private volatile Supplier<T> mySupplier;

Choose a reason for hiding this comment

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

Либо используем префикс my, либо нет, но только что-то одно )

@simpledumpling
Copy link
Owner Author

@sproshev, исправила :)


public interface FactoryFromSupplier {
<T> Lazy<T> createLazy(Supplier<T> supplier);
}
Copy link

Choose a reason for hiding this comment

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

Используется только в тестах, значит только там и должен жить )

@sproshev
Copy link

зачтено, если бы замечания были исправлены, было бы 10, иначе -- только половина (

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.

3 participants