You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2015/08/25 17:16:12 UTC
svn commit: r1697696 - in
/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals:
ExecutionVisitor.java Pass3bVerifier.java
Author: sebb
Date: Tue Aug 25 15:16:12 2015
New Revision: 1697696
URL: http://svn.apache.org/r1697696
Log:
Replace direct use of external fields with getter/setter
Modified:
commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals/ExecutionVisitor.java
commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals/Pass3bVerifier.java
Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals/ExecutionVisitor.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals/ExecutionVisitor.java?rev=1697696&r1=1697695&r2=1697696&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals/ExecutionVisitor.java (original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals/ExecutionVisitor.java Tue Aug 25 15:16:12 2015
@@ -839,7 +839,7 @@ public class ExecutionVisitor extends Em
if (o.getMethodName(cpg).equals(Constants.CONSTRUCTOR_NAME)){
UninitializedObjectType t = (UninitializedObjectType) stack().peek(o.getArgumentTypes(cpg).length);
if (t == Frame.getThis()){
- Frame._this = null;
+ Frame.setThis(null);
}
stack().initializeObject(t);
locals().initializeObject(t);
Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals/Pass3bVerifier.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals/Pass3bVerifier.java?rev=1697696&r1=1697695&r2=1697696&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals/Pass3bVerifier.java (original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/verifier/structurals/Pass3bVerifier.java Tue Aug 25 15:16:12 2015
@@ -351,10 +351,10 @@ public final class Pass3bVerifier extend
if ( !mg.isStatic() ){
if (mg.getName().equals(Constants.CONSTRUCTOR_NAME)){
Frame.setThis(new UninitializedObjectType(ObjectType.getInstance(jc.getClassName())));
- f.getLocals().set(0, Frame._this);
+ f.getLocals().set(0, Frame.getThis());
}
else{
- Frame._this = null;
+ Frame.setThis(null);
f.getLocals().set(0, ObjectType.getInstance(jc.getClassName()));
}
}