mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-15 09:34:53 +00:00
Initial Commit
This commit is contained in:
1 parent
397135f687
commit
0f32dd8620
82 files changed
+10693
No files matched your search
@@ -0,0 +1,29 @@
|
||||
package codechicken.lib.asm;
|
||||
|
||||
import org.objectweb.asm.ClassWriter;
|
||||
|
||||
|
||||
public class CC_ClassWriter extends ClassWriter
|
||||
{
|
||||
public CC_ClassWriter(int flags)
|
||||
{
|
||||
super(flags);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getCommonSuperClass(String type1, String type2)
|
||||
{
|
||||
String c = type1.replace('/', '.');
|
||||
String d = type2.replace('/', '.');
|
||||
if(ClassHeirachyManager.classExtends(d, c))
|
||||
return type1;
|
||||
if(ClassHeirachyManager.classExtends(c, d))
|
||||
return type2;
|
||||
do
|
||||
{
|
||||
c = ClassHeirachyManager.getSuperClass(c);
|
||||
}
|
||||
while(!ClassHeirachyManager.classExtends(d, c));
|
||||
return c.replace('.', '/');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user