Skip to content

Commit

Permalink
Use double-checked locking for @memoize methods.
Browse files Browse the repository at this point in the history
Throw NPE if a not-nullable @memoize method returns null.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=123875665
  • Loading branch information
netdpb authored and eamonnmcmanus committed Aug 30, 2016
1 parent ef9c37a commit a756ee6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public final class FactoryGenerated {
}

// Generates second factory method with a different name for the Dependency dependency.
// Tests http://b/21632171.
FactoryGenerated(
Object name,
@Provided Dependency dependency2,
Expand Down

0 comments on commit a756ee6

Please sign in to comment.