diff options
author | 2017-08-30 00:23:40 +0200 | |
---|---|---|
committer | 2017-08-30 13:48:32 +0200 | |
commit | 00443495e002c9fc68adbcb708f223eb4b6a73c1 (patch) | |
tree | ec4484fc46793ec9b671a902c42e143a3df79c91 /src/test/java/com/google/devtools/common/options/BUILD | |
parent | ef1424cb39a4ff77bc6579821bbc24eea70e32a3 (diff) |
Move default value & converter finding logic to the OptionDefinition class.
Removes some duplicate computation by memoizing the results. Consolidates caching into a single optionDefinition object, instead of having multiple caches that go from the option name to different parts of what defines an option.
Fly-by cleanup of OptionDescription's contents, all contents that are statically defined as part of an option are in OptionDefintion, while expansion data, which depends on the existence of other options, is more clearly stored separately.
Will move the converter-to-option type matching sanity checks to a compile time check in a later change.
RELNOTES: None.
PiperOrigin-RevId: 166912716
Diffstat (limited to 'src/test/java/com/google/devtools/common/options/BUILD')
-rw-r--r-- | src/test/java/com/google/devtools/common/options/BUILD | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/java/com/google/devtools/common/options/BUILD b/src/test/java/com/google/devtools/common/options/BUILD index a0a4e36fd7..84e3178c4f 100644 --- a/src/test/java/com/google/devtools/common/options/BUILD +++ b/src/test/java/com/google/devtools/common/options/BUILD @@ -19,6 +19,7 @@ java_test( "//third_party:guava-testlib", "//third_party:jsr305", "//third_party:junit4", + "//third_party:mockito", "//third_party:truth", ], ) |