Mercurial > hg > truffle
view truffle/com.oracle.truffle.api/src/META-INF/upgrade/conditionprofile.hint @ 22158:96e70615cc4a
Jackpot rule to warn about non-final ConditionProfile fields and help users to fix that.
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Wed, 16 Sep 2015 11:59:56 +0200 |
parents | |
children |
line wrap: on
line source
'ConditionProfile fields have to be final to be useful': $mods$ $type $name = $init$; :: $name instanceof com.oracle.truffle.api.utilities.ConditionProfile && !hasModifier($name, javax.lang.model.element.Modifier.FINAL) && elementKindMatches($name, javax.lang.model.element.ElementKind.FIELD) => 'Add final': $mods$ final $type $name = $init$; ;;