mirror of
https://github.com/google/nomulus.git
synced 2025-08-06 01:35:17 +02:00
The intention (from []is: - actualAsString() is the method that people call. - actualCustomStringRepresentation() is the method that people override. Fortunately, no one actually calls actualCustomStringRepresentation(), aside from some tests that call it to test a subject's implementation. That's easy enough to work around by extracting a method. (Arguably @ForOverride should permit calls from tests in some cases (now that Error Prone knows how to identify test code). But it's not entirely clear, since, e.g., people shouldn't be testing Converter.doForward(null) because the method can never be invoked that way. Some discussion here: []Tested: global TAP [] RELNOTES=Marked `actualCustomStringRepresentation()` as `@ForOverride`. To retrieve the string representation, call `actualAsString()`. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=185672328 |
||
---|---|---|
.. | ||
registry |