This commit is contained in:
novice.li
2024-05-02 07:47:47 +08:00
parent e7bc25928e
commit f10a54011f
6 changed files with 25 additions and 55 deletions

View File

@@ -29,13 +29,13 @@
package com.novitechie;
import java.io.IOException;
import java.io.InputStream;
import jdk.internal.org.objectweb.asm.ClassReader;
import jdk.internal.org.objectweb.asm.ClassWriter;
import jdk.internal.org.objectweb.asm.Opcodes;
import java.io.IOException;
import java.io.InputStream;
/**
@@ -146,13 +146,13 @@ public class SafeClassWriter extends ClassWriter {
throws IOException {
while (!"java/lang/Object".equals(type)) {
String[] itfs = info.getInterfaces();
for (int i = 0; i < itfs.length; ++i) {
if (itfs[i].equals(itf)) {
for (String s : itfs) {
if (s.equals(itf)) {
return true;
}
}
for (int i = 0; i < itfs.length; ++i) {
if (typeImplements(itfs[i], typeInfo(itfs[i]), itf)) {
for (String s : itfs) {
if (typeImplements(s, typeInfo(s), itf)) {
return true;
}
}