Skip to content

Commit

Permalink
8286399: Address possibly lossy conversions in JDK Build Tools
Browse files Browse the repository at this point in the history
Reviewed-by: rriggs, joehw
  • Loading branch information
naotoj committed May 16, 2022
1 parent b884db8 commit c044cb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions make/jdk/src/classes/build/tools/charsetmapping/EUC_TW.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -119,7 +119,7 @@ static void genClass(String pkg, String args[]) throws Exception
indexC2B[e.cp>>8] = 1;
} else {
indexC2BSupp[(e.cp&0xffff)>>8] = 1;
suppFlag[e.bs] |= (1 << plane);
suppFlag[e.bs] |= (byte) (1 << plane);
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -1273,7 +1273,7 @@ else if (c == '/') {
for (int i = 0; i < decisionPointList.size(); i++) {
int rowNum = decisionPointList.elementAt(i).intValue();
state = tempStateTable.elementAt(rowNum);
state[numCategories] |= END_STATE_FLAG;
state[numCategories] |= (short) END_STATE_FLAG;
if (sawEarlyBreak) {
state[numCategories] |= LOOKAHEAD_STATE_FLAG;
}
Expand Down Expand Up @@ -1580,7 +1580,7 @@ private void backfillLoopingStates() {
}

// clear out the backfill part of the flag word
state[numCategories] &= ALL_FLAGS;
state[numCategories] &= (short) ALL_FLAGS;

// then fill all zero cells in the current state with values
// from the corresponding cells of the fromState
Expand Down

1 comment on commit c044cb8

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.