Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move usages of Matchers.adaptMatcherType to .toType, which is slightl…
…y simpler. Note that this isn't an entirely equivalent replacement as toType always returns Matcher<Tree> whereas adaptMatcherType used to allow setting the returned matcher's tree type. However, this setting didn't really have any effect: any kind of tree is a legal input to the returned matcher. Since any place that takes Matcher<Foo> should really take Matcher<? super Foo> (and can easily be made to), toType's model tends to be easier to read at call sites. RELNOTES: None. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=90160315
- Loading branch information
Showing
2 changed files
with
21 additions
and
37 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