On Fri, 21 Feb 2025 14:01:20 GMT, Chen Liang <li...@openjdk.org> wrote:
>> I don't use the field directly because the field is a short and getModifiers >> makes it into Modifier. > > Indeed, even though this checks for the specific bit so widening has no > effect, it is better to be cautious here. > I don't use the field directly because the field is a short and getModifiers > makes it into Modifier. But getModifiers() returns `int`, not `Modifier` (which is all static). ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/23572#discussion_r1966170358