Skip to content

Commit

Permalink
Rename class
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Centurion committed Dec 17, 2020
1 parent 3c848d8 commit 1ec807d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Expand Up @@ -19,9 +19,9 @@
import org.objectweb.asm.tree.AbstractInsnNode;
import org.objectweb.asm.tree.MethodNode;

public class KotlinUnsafeCastOperatorFilter1_4Test extends FilterTestBase {
public class Kotlin14UnsafeCastOperatorFilterTest extends FilterTestBase {

private final KotlinUnsafeCastOperatorFilter1_4 filter = new KotlinUnsafeCastOperatorFilter1_4();
private final Kotlin14UnsafeCastOperatorFilter filter = new Kotlin14UnsafeCastOperatorFilter();

private final MethodNode m = new MethodNode(InstrSupport.ASM_API_VERSION, 0,
"name", "()V", null, null);
Expand Down
Expand Up @@ -47,7 +47,7 @@ public static IFilter all() {
new KotlinNotNullOperatorFilter(),
new KotlinDefaultArgumentsFilter(), new KotlinInlineFilter(),
new KotlinCoroutineFilter(), new KotlinDefaultMethodsFilter(),
new KotlinUnsafeCastOperatorFilter1_4());
new Kotlin14UnsafeCastOperatorFilter());
}

private Filters(final IFilter... filters) {
Expand Down
Expand Up @@ -22,14 +22,14 @@
* Filters branch in bytecode that Kotlin compiler generates for "unsafe" cast
* operator for Kotlin 1.4
*/
public class KotlinUnsafeCastOperatorFilter1_4 implements IFilter {
public class Kotlin14UnsafeCastOperatorFilter implements IFilter {

private static final String KOTLIN_1_4_TYPE_CAST_EXCEPTION = "java/lang/NullPointerException";

@Override
public void filter(MethodNode methodNode, IFilterContext context,
IFilterOutput output) {
final KotlinUnsafeCastOperatorFilter1_4.Matcher matcher = new KotlinUnsafeCastOperatorFilter1_4.Matcher();
final Kotlin14UnsafeCastOperatorFilter.Matcher matcher = new Kotlin14UnsafeCastOperatorFilter.Matcher();
for (final AbstractInsnNode i : methodNode.instructions) {
matcher.match(i, output);
}
Expand Down

0 comments on commit 1ec807d

Please sign in to comment.