Skip to content

Commit

Permalink
Document our exciting Matches/NotMatches discoveries on @Placeholder.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 688935702
  • Loading branch information
graememorgan authored and Error Prone Team committed Oct 28, 2024
1 parent db6c890 commit 50b1959
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@
* <em>must</em> contain references to all arguments that <em>are</em> passed to them -- except
* those corresponding to parameters annotated with {@link MayOptionallyUse}.
*
* <p>Note that {@link Matches} and {@link NotMatches} can be applied to placeholder methods, but,
* <strong>and this is a serious health warning</strong>, those predicates will only be matched if
* the placeholder method is used as an <em>expression</em>, not a <em>statement</em>.
*
* @author [email protected] (Louis Wasserman)
*/
@Target(ElementType.METHOD)
Expand Down

0 comments on commit 50b1959

Please sign in to comment.