antlr / stringtemplate4

StringTemplate 4
http://www.stringtemplate.org
Other
956 stars 231 forks source link

unnecessary condition evaluation in If statement #210

Closed rasentry closed 6 years ago

rasentry commented 6 years ago
<if(field.type.message || field.type.enum || (field.type.scalar && field.javaIsScalarNullableType))>

all conditions evalueates even the first field.type.message is true

parrt commented 6 years ago

hi. yeah, i didn't short circuit. I won't have time to fix though.

sharwell commented 5 years ago

Duplicate of #19