@ Override public boolean isAcceptableChange ( Changes changes , Tree node , MethodSymbol symbol , VisitorState state ) { // Now check to see if there is a comment in the position of any actual parameter we want to // change which matches the formal parameter ImmutableList < Commented < ExpressionTree >> comments = findCommentsForArguments ( node , state ) ; return changes . changedPairs ( ) . stream ( ) . noneMatch ( p -> { MatchType match = NamedParameterComment . match ( comments . get ( p . formal ( ) . index ( ) ) , p . formal ( ) . name ( ) ) . matchType ( ) ; return match == MatchType . EXACT_MATCH || match == MatchType . APPROXIMATE_MATCH ; } ) ; }
Return true if there are no comments on the original actual parameter of a change which match the name of the formal parameter .