core/src/main/java/com/google/errorprone/bugpatterns/checkreturnvalue/CanIgnoreReturnValueSuggester.java
private boolean returnsThis(ReturnTree returnTree) {
        ExpressionTree returnExpression = returnTree.getExpression();
        if (returnExpression instanceof IdentifierTree) {
          if (((IdentifierTree) returnExpression).getName().contentEquals("this")) {
            return true;
          }
        }
        return false;
      }
/** Returns whether or not the given {@link ReturnTree} returns exactly {@code this}. */
Returns whether or not the given  ReturnTree returns exactly  this.
Returns whether or not the given ReturnTree returns exactly this .
private boolean returnsThis(ReturnTree returnTree) {
        ExpressionTree returnExpression = returnTree.getExpression();
        if (returnExpression instanceof IdentifierTree) {
          if (((IdentifierTree) returnExpression).getName().contentEquals("this")) {
            return true;
          }
        }
        return false;
      }
private boolean returnsThis ( ReturnTree returnTree ) { ExpressionTree returnExpression = returnTree . getExpression ( ) ; if ( returnExpression instanceof IdentifierTree ) { if ( ( ( IdentifierTree ) returnExpression ) . getName ( ) . contentEquals ( "this" ) ) { return true ; } } return false ; }
Returns whether or not the given {@link ReturnTree} returns exactly {@code this}.
Returns whether or not the given { @link ReturnTree } returns exactly { @code this } .