Skip to content

Java02. ДЗ 01, Старкова Анастасия, подгруппа 2#1

Open
simpledumpling wants to merge 3 commits intomasterfrom
Task01.Lazy
Open

Java02. ДЗ 01, Старкова Анастасия, подгруппа 2#1
simpledumpling wants to merge 3 commits intomasterfrom
Task01.Lazy

Conversation

@simpledumpling
Copy link
Copy Markdown
Owner


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

Choose a reason for hiding this comment

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

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

@simpledumpling
Copy link
Copy Markdown
Owner Author

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


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

Choose a reason for hiding this comment

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

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

@sproshev
Copy link
Copy Markdown

зачтено, если бы замечания были исправлены, было бы 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.

2 participants