Commit 4ff78952 authored by Eric Bruneton's avatar Eric Bruneton

Fix typo and remove unnecessary code.

parent e700b2d2
Pipeline #954 passed with stage
in 6 minutes and 19 seconds
......@@ -194,7 +194,7 @@ public class AnalyzerAdapter extends MethodVisitor {
final Object[] stack) {
if (type != Opcodes.F_NEW) { // uncompressed frame
throw new IllegalArgumentException(
"LocalVariablesSorter only accepts expanded frames (see ClassReader.EXPAND_FRAMES)");
"AnalyzerAdapter only accepts expanded frames (see ClassReader.EXPAND_FRAMES)");
}
super.visitFrame(type, nLocal, local, nStack, stack);
......
......@@ -80,11 +80,6 @@ public class TryCatchBlockSorterTest extends AsmTest {
}
};
if (classParameter.isMoreRecentThan(apiParameter)) {
assertThrows(RuntimeException.class, () -> classReader.accept(classVisitor, 0));
return;
}
classReader.accept(classVisitor, 0);
assertThat(() -> loadAndInstantiate(classParameter.getName(), classWriter.toByteArray()))
.succeedsOrThrows(UnsupportedClassVersionError.class)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment