Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/org/plumelib/bcelutil/InstructionListUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ protected final void insertBeforeHandle(
} else if (it instanceof LocalVariableGen lvg) {
// If ih is end of local variable range, leave as is.
// If ih is start of local variable range and we are
// at the begining of the method go ahead and change
// at the beginning of the method go ahead and change
// start to newStart. This is to preserve live range
// for variables that are live for entire method.
if ((lvg.getStart() == ih) && atStart) {
Expand Down Expand Up @@ -443,7 +443,7 @@ protected final void replaceInstructions(

printIl(newEnd, "replace_inst #1");

// Move other targets to the new instuctions.
// Move other targets to the new instructions.
if (ih.hasTargeters()) {
for (InstructionTargeter it : ih.getTargeters()) {
if (it instanceof LineNumberGen || it instanceof LocalVariableGen) {
Expand Down
14 changes: 7 additions & 7 deletions src/main/java/org/plumelib/bcelutil/StackMapUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public StackMapUtils() {
protected int firstLocalIndex;

/** An empty StackMap used for initialization. */
@SuppressWarnings("interning") // @InternedDistinct initalization with fresh object
@SuppressWarnings("interning") // @InternedDistinct initialization with fresh object
private StackMapEntry @InternedDistinct [] emptyStackMapTable = {};

/**
Expand Down Expand Up @@ -353,7 +353,7 @@ protected final void modifyStackMapsForSwitches(InstructionHandle ih, Instructio
return;
}

// Make sure all instruction offsets are uptodate.
// Make sure all instruction offsets are up-to-date.
il.setPositions();

// Loop through each instruction looking for a switch
Expand Down Expand Up @@ -747,7 +747,7 @@ protected final LocalVariableGen addNewParameter(MethodGen mgen, String argName,
// we need to make a pass over the byte codes to update the local
// offset values of all the locals we just shifted up. This may have
// a 'knock on' effect if we are forced to change an instruction that
// references implict local #3 to an instruction with an explict
// references implicit local #3 to an instruction with an explicit
// reference to local #4 as this would require the insertion of an
// offset into the byte codes. This means we would need to make an
// additional pass to update branch targets (no - BCEL does this for
Expand Down Expand Up @@ -843,7 +843,7 @@ protected final LocalVariableGen create_method_scope_local(
// Now we need to make a pass over the byte codes to update the local
// offset values of all the locals we just shifted up. This may have
// a 'knock on' effect if we are forced to change an instruction that
// references implict local #3 to an instruction with an explict
// references implicit local #3 to an instruction with an explicit
// reference to local #4 as this would require the insertion of an
// offset into the byte codes. This means we would need to make an
// additional pass to update branch targets (no - BCEL does this for
Expand Down Expand Up @@ -884,7 +884,7 @@ protected final LocalVariableGen create_method_scope_local(

if (lv.getName().startsWith("DaIkOnTeMp")) {
// Remember the index of a compiler temp. We may wish
// to insert our new local prior to a temp to simplfy
// to insert our new local prior to a temp to simplify
// the generation of StackMaps.
if (compilerTempI == -1) {
compilerTempI = i;
Expand Down Expand Up @@ -978,7 +978,7 @@ protected final LocalVariableGen create_method_scope_local(
* <ul>
* <li>saving the exception in a finally clause
* <li>the lock for a synchronized block
* <li>interators
* <li>iterators
* <li>user declared locals that never appear in a StackMap
* <li>(others?)
* </ul>
Expand Down Expand Up @@ -1146,7 +1146,7 @@ protected final int gen_locals(MethodGen mgen, int offset) {
InstructionList il = mgen.getInstructionList();
il.setPositions();

// Set up inital state of StackMap info on entry to method.
// Set up initial state of StackMap info on entry to method.
int localsOffsetHeight = 0;
int byteCodeOffset = -1;
LocalVariableGen newLvg;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/plumelib/bcelutil/StackVer.java
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ public VerificationResult do_stack_ver(MethodGen mg) {
re.printStackTrace(pw);

throw new AssertionViolatedException(
"Some RuntimeException occured while verify()ing class '"
"Some RuntimeException occurred while verify()ing class '"
+ mg.getClassName()
+ "', method '"
+ mg
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/plumelib/bcelutil/package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
* other members of the {@code org.apache.bcel.classfile} package and {@link
* org.plumelib.bcelutil.BcelUtil} to explore the class file of interest.
*
* @see org.plumelib.bcelutil.InstructionListUtils InstructionListUtils for notes on modifing a Java
* class file
* @see org.plumelib.bcelutil.InstructionListUtils InstructionListUtils for notes on modifying a
* Java class file
* @see <a href="https://commons.apache.org/proper/commons-bcel/index.html">Commons BCEL web site
* for details about the BCEL library</a>
*/
Expand Down