Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix example in documentation for
IteratorTester
I made a mistake and accidentally included an example that does not compile. Specifically, importing `KnownOrder` as-is does not compile; instead one needs to import `IteratorTester.KnownOrder`. See #5254 for more information. I also changed the example to use `Collections#unmodifiableList` rather than `ArrayList` because `ArrayList#iterator` does not satisfy all the requirements of `IteratorFeature#MODIFIABLE`. Fixes #5276 RELNOTES=n/a ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=336911192
- Loading branch information
Showing
2 changed files
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters