Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
22157:dc83cc1f94f2 | 22158:96e70615cc4a |
---|---|
1 'ConditionProfile fields have to be final to be useful': | |
2 $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) | |
3 => | |
4 'Add final': | |
5 $mods$ final $type $name = $init$; | |
6 ;; |