mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8286378: Address possibly lossy conversions in java.base
Reviewed-by: naoto, xuelei, bpb, alanb
This commit is contained in:
parent
0a6832b24c
commit
17c52789b7
32 changed files with 68 additions and 71 deletions
|
@ -4866,7 +4866,7 @@ public final class Main {
|
|||
if (pos % 2 == 0) {
|
||||
data[pos/2] = (byte)(hex << 4);
|
||||
} else {
|
||||
data[pos/2] += hex;
|
||||
data[pos/2] += (byte)hex;
|
||||
}
|
||||
pos++;
|
||||
}
|
||||
|
@ -5338,4 +5338,3 @@ class Pair<A, B> {
|
|||
return new Pair<>(a,b);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue