19
19
20
20
package edu .umd .cs .findbugs .ba ;
21
21
22
- import org .apache .bcel .Constants ;
22
+ import org .apache .bcel .Const ;
23
23
import org .apache .bcel .generic .*;
24
24
25
25
import edu .umd .cs .findbugs .bcel .generic .NONNULL2Z ;
@@ -139,7 +139,7 @@ public Location getLocation() {
139
139
*/
140
140
public int getNumWordsConsumed (Instruction ins ) {
141
141
int numWordsConsumed = ins .consumeStack (cpg );
142
- if (numWordsConsumed == Constants .UNPREDICTABLE ) {
142
+ if (numWordsConsumed == Const .UNPREDICTABLE ) {
143
143
throw new InvalidBytecodeException ("Unpredictable stack consumption" );
144
144
}
145
145
return numWordsConsumed ;
@@ -151,7 +151,7 @@ public int getNumWordsConsumed(Instruction ins) {
151
151
public int getNumWordsProduced (Instruction ins ) {
152
152
153
153
int numWordsProduced = ins .produceStack (cpg );
154
- if (numWordsProduced == Constants .UNPREDICTABLE ) {
154
+ if (numWordsProduced == Const .UNPREDICTABLE ) {
155
155
throw new InvalidBytecodeException ("Unpredictable stack productions" );
156
156
}
157
157
return numWordsProduced ;
@@ -311,7 +311,7 @@ public void visitStackConsumer(StackConsumer obj) {
311
311
public void handleStoreInstruction (StoreInstruction obj ) {
312
312
try {
313
313
int numConsumed = obj .consumeStack (cpg );
314
- if (numConsumed == Constants .UNPREDICTABLE ) {
314
+ if (numConsumed == Const .UNPREDICTABLE ) {
315
315
throw new InvalidBytecodeException ("Unpredictable stack consumption" );
316
316
}
317
317
@@ -335,7 +335,7 @@ public void handleStoreInstruction(StoreInstruction obj) {
335
335
*/
336
336
public void handleLoadInstruction (LoadInstruction obj ) {
337
337
int numProduced = obj .produceStack (cpg );
338
- if (numProduced == Constants .UNPREDICTABLE ) {
338
+ if (numProduced == Const .UNPREDICTABLE ) {
339
339
throw new InvalidBytecodeException ("Unpredictable stack production" );
340
340
}
341
341
0 commit comments