RFR: 8286399: Address possibly lossy conversions in JDK Build Tools
Joe Wang
joehw at openjdk.java.net
Fri May 13 22:14:50 UTC 2022
On Fri, 13 May 2022 17:05:43 GMT, Naoto Sato <naoto at openjdk.org> wrote:
> Applied required casts for the upcoming warning. Verified by cherry-picking Adam's patch.
make/jdk/src/classes/build/tools/generatebreakiteratordata/RuleBasedBreakIteratorBuilder.java line 1278:
> 1276: state[numCategories] |= (short) END_STATE_FLAG;
> 1277: if (sawEarlyBreak) {
> 1278: state[numCategories] |= LOOKAHEAD_STATE_FLAG;
Does this need a cast as well? and also other cases, e.g. line 1019: state[numCategories] = DONT_LOOP_FLAG;?
-------------
PR: https://git.openjdk.java.net/jdk/pull/8706
More information about the core-libs-dev
mailing list