Skip to content

Commit a756ee6

Browse files
netdpbeamonnmcmanus
authored andcommitted
Use double-checked locking for @memoize methods.
Throw NPE if a not-nullable @memoize method returns null. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=123875665
1 parent ef9c37a commit a756ee6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

factory/src/it/functional/src/main/java/com/google/auto/factory/FactoryGenerated.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public final class FactoryGenerated {
3939
}
4040

4141
// Generates second factory method with a different name for the Dependency dependency.
42+
// Tests http://b/21632171.
4243
FactoryGenerated(
4344
Object name,
4445
@Provided Dependency dependency2,

0 commit comments

Comments
 (0)