Skip to content

Commit e1fbc7f

Browse files
mpociechalrytz
authored andcommitted
[asm-cherry-pick] Fix typos
Fix typos. This change was initially part of 549dc88.
1 parent 91810c9 commit e1fbc7f

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

src/asm/scala/tools/asm/Label.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ void visitSubroutine(final Label JSR, final long id, final int nbSubroutines) {
545545
}
546546

547547
// ------------------------------------------------------------------------
548-
// Overriden Object methods
548+
// Overridden Object methods
549549
// ------------------------------------------------------------------------
550550

551551
/**

src/asm/scala/tools/asm/tree/analysis/Analyzer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ private void findSubroutine(int insn, final Subroutine sub,
375375
* instruction of the method. The size of the returned array is
376376
* equal to the number of instructions (and labels) of the method. A
377377
* given frame is <tt>null</tt> if the corresponding instruction
378-
* cannot be reached, or if an error occured during the analysis of
378+
* cannot be reached, or if an error occurred during the analysis of
379379
* the method.
380380
*/
381381
public Frame<V>[] getFrames() {
@@ -435,7 +435,7 @@ protected Frame<V> newFrame(final Frame<? extends V> src) {
435435

436436
/**
437437
* Creates a control flow graph edge. The default implementation of this
438-
* method does nothing. It can be overriden in order to construct the
438+
* method does nothing. It can be overridden in order to construct the
439439
* control flow graph of a method (this method is called by the
440440
* {@link #analyze analyze} method during its visit of the method's code).
441441
*

src/asm/scala/tools/asm/tree/analysis/Interpreter.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ protected Interpreter(final int api) {
8282
* the bytecode instruction to be interpreted.
8383
* @return the result of the interpretation of the given instruction.
8484
* @throws AnalyzerException
85-
* if an error occured during the interpretation.
85+
* if an error occurred during the interpretation.
8686
*/
8787
public abstract V newOperation(AbstractInsnNode insn)
8888
throws AnalyzerException;
@@ -101,7 +101,7 @@ public abstract V newOperation(AbstractInsnNode insn)
101101
* @return the result of the interpretation of the given instruction. The
102102
* returned value must be <tt>equal</tt> to the given value.
103103
* @throws AnalyzerException
104-
* if an error occured during the interpretation.
104+
* if an error occurred during the interpretation.
105105
*/
106106
public abstract V copyOperation(AbstractInsnNode insn, V value)
107107
throws AnalyzerException;
@@ -122,7 +122,7 @@ public abstract V copyOperation(AbstractInsnNode insn, V value)
122122
* the argument of the instruction to be interpreted.
123123
* @return the result of the interpretation of the given instruction.
124124
* @throws AnalyzerException
125-
* if an error occured during the interpretation.
125+
* if an error occurred during the interpretation.
126126
*/
127127
public abstract V unaryOperation(AbstractInsnNode insn, V value)
128128
throws AnalyzerException;
@@ -146,7 +146,7 @@ public abstract V unaryOperation(AbstractInsnNode insn, V value)
146146
* the second argument of the instruction to be interpreted.
147147
* @return the result of the interpretation of the given instruction.
148148
* @throws AnalyzerException
149-
* if an error occured during the interpretation.
149+
* if an error occurred during the interpretation.
150150
*/
151151
public abstract V binaryOperation(AbstractInsnNode insn, V value1, V value2)
152152
throws AnalyzerException;
@@ -167,7 +167,7 @@ public abstract V binaryOperation(AbstractInsnNode insn, V value1, V value2)
167167
* the third argument of the instruction to be interpreted.
168168
* @return the result of the interpretation of the given instruction.
169169
* @throws AnalyzerException
170-
* if an error occured during the interpretation.
170+
* if an error occurred during the interpretation.
171171
*/
172172
public abstract V ternaryOperation(AbstractInsnNode insn, V value1,
173173
V value2, V value3) throws AnalyzerException;
@@ -185,7 +185,7 @@ public abstract V ternaryOperation(AbstractInsnNode insn, V value1,
185185
* the arguments of the instruction to be interpreted.
186186
* @return the result of the interpretation of the given instruction.
187187
* @throws AnalyzerException
188-
* if an error occured during the interpretation.
188+
* if an error occurred during the interpretation.
189189
*/
190190
public abstract V naryOperation(AbstractInsnNode insn,
191191
List<? extends V> values) throws AnalyzerException;
@@ -203,7 +203,7 @@ public abstract V naryOperation(AbstractInsnNode insn,
203203
* @param expected
204204
* the expected return type of the analyzed method.
205205
* @throws AnalyzerException
206-
* if an error occured during the interpretation.
206+
* if an error occurred during the interpretation.
207207
*/
208208
public abstract void returnOperation(AbstractInsnNode insn, V value,
209209
V expected) throws AnalyzerException;

src/asm/scala/tools/asm/util/Printer.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public abstract Printer visitClassAnnotation(final String desc,
181181
*/
182182
public Printer visitClassTypeAnnotation(final int typeRef,
183183
final TypePath typePath, final String desc, final boolean visible) {
184-
throw new RuntimeException("Must be overriden");
184+
throw new RuntimeException("Must be overridden");
185185
}
186186

187187
/**
@@ -264,7 +264,7 @@ public abstract Printer visitFieldAnnotation(final String desc,
264264
*/
265265
public Printer visitFieldTypeAnnotation(final int typeRef,
266266
final TypePath typePath, final String desc, final boolean visible) {
267-
throw new RuntimeException("Must be overriden");
267+
throw new RuntimeException("Must be overridden");
268268
}
269269

270270
/**
@@ -287,7 +287,7 @@ public Printer visitFieldTypeAnnotation(final int typeRef,
287287
* {@link scala.tools.asm.MethodVisitor#visitParameter(String, int)}.
288288
*/
289289
public void visitParameter(String name, int access) {
290-
throw new RuntimeException("Must be overriden");
290+
throw new RuntimeException("Must be overridden");
291291
}
292292

293293
/**
@@ -309,7 +309,7 @@ public abstract Printer visitMethodAnnotation(final String desc,
309309
*/
310310
public Printer visitMethodTypeAnnotation(final int typeRef,
311311
final TypePath typePath, final String desc, final boolean visible) {
312-
throw new RuntimeException("Must be overriden");
312+
throw new RuntimeException("Must be overridden");
313313
}
314314

315315
/**
@@ -380,7 +380,7 @@ public void visitMethodInsn(final int opcode, final String owner,
380380
visitMethodInsn(opcode, owner, name, desc, itf);
381381
return;
382382
}
383-
throw new RuntimeException("Must be overriden");
383+
throw new RuntimeException("Must be overridden");
384384
}
385385

386386
/**
@@ -397,7 +397,7 @@ public void visitMethodInsn(final int opcode, final String owner,
397397
visitMethodInsn(opcode, owner, name, desc);
398398
return;
399399
}
400-
throw new RuntimeException("Must be overriden");
400+
throw new RuntimeException("Must be overridden");
401401
}
402402

403403
/**
@@ -457,7 +457,7 @@ public abstract void visitMultiANewArrayInsn(final String desc,
457457
*/
458458
public Printer visitInsnAnnotation(final int typeRef,
459459
final TypePath typePath, final String desc, final boolean visible) {
460-
throw new RuntimeException("Must be overriden");
460+
throw new RuntimeException("Must be overridden");
461461
}
462462

463463
/**
@@ -473,7 +473,7 @@ public abstract void visitTryCatchBlock(final Label start, final Label end,
473473
*/
474474
public Printer visitTryCatchAnnotation(final int typeRef,
475475
final TypePath typePath, final String desc, final boolean visible) {
476-
throw new RuntimeException("Must be overriden");
476+
throw new RuntimeException("Must be overridden");
477477
}
478478

479479
/**
@@ -491,7 +491,7 @@ public abstract void visitLocalVariable(final String name,
491491
public Printer visitLocalVariableAnnotation(final int typeRef,
492492
final TypePath typePath, final Label[] start, final Label[] end,
493493
final int[] index, final String desc, final boolean visible) {
494-
throw new RuntimeException("Must be overriden");
494+
throw new RuntimeException("Must be overridden");
495495
}
496496

497497
/**

0 commit comments

Comments
 (0)