mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 18:14:38 +02:00
6657909: javap has unchecked compilation warnings
Reviewed-by: mcimadamore
This commit is contained in:
parent
aefbc41695
commit
e3cb6a2c82
8 changed files with 70 additions and 72 deletions
|
@ -653,7 +653,7 @@ public class JavapPrinter {
|
|||
case CONSTANT_METHOD:
|
||||
case CONSTANT_INTERFACEMETHOD:
|
||||
case CONSTANT_FIELD: {
|
||||
CPX2 x = (CPX2)(cls.getCpoolEntry(cpx));
|
||||
CPX2 x = cls.getCpoolEntry(cpx);
|
||||
if (x.cpx1 == cls.getthis_cpx()) {
|
||||
// don't print class part for local references
|
||||
cpx=x.cpx2;
|
||||
|
@ -851,7 +851,7 @@ public class JavapPrinter {
|
|||
case CONSTANT_INTERFACEMETHOD:
|
||||
case CONSTANT_FIELD: {
|
||||
// CPX2 x=(CPX2)(cpool[cpx]);
|
||||
CPX2 x = (CPX2)(cls.getCpoolEntry(cpx));
|
||||
CPX2 x = cls.getCpoolEntry(cpx);
|
||||
if (x.cpx1 == cls.getthis_cpx()) {
|
||||
// don't print class part for local references
|
||||
cpx=x.cpx2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue