Skip to content

Commit

Permalink
Issue #2001: Use denoteableType()
Browse files Browse the repository at this point in the history
  • Loading branch information
tombentley committed Jan 19, 2015
1 parent ce9e6a6 commit 934c4cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ List<JCStatement> transformIf(java.util.List<Condition> conditions, Tree.Express
private List<JCStatement> evaluateAndAssign(String tmpVar, Tree.Expression expr, Tree.Term outerExpression){
at(expr);
BoxingStrategy boxingStrategy = CodegenUtil.getBoxingStrategy(outerExpression);
return List.<JCStatement>of(make().Exec(make().Assign(makeUnquotedIdent(tmpVar), expressionGen().transformExpression(expr, boxingStrategy, outerExpression.getTypeModel()))));
return List.<JCStatement>of(make().Exec(make().Assign(makeUnquotedIdent(tmpVar), expressionGen().transformExpression(expr, boxingStrategy, typeFact().denotableType(outerExpression.getTypeModel())))));
}

private JCBlock makeThenBlock(Cond cond, Node thenPart, Substitution subs, String tmpVar, Tree.Term outerExpression) {
Expand Down

0 comments on commit 934c4cf

Please sign in to comment.