mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-19 11:49:05 +00:00
1 parent
8e41cdfa12
commit
2ef8c0839a
2 files changed
+12
-12
No files matched your search
@@ -6,17 +6,17 @@
|
||||
|
||||
package stanhebben.zenscript.util;
|
||||
|
||||
import java.util.Iterator;
|
||||
import org.objectweb.asm.ClassWriter;
|
||||
import org.objectweb.asm.Opcodes;
|
||||
import org.objectweb.asm.Type;
|
||||
import stanhebben.zenscript.type.natives.IJavaMethod;
|
||||
import stanhebben.zenscript.type.natives.JavaMethod;
|
||||
import static stanhebben.zenscript.util.ZenTypeUtil.EMPTY_REGISTRY;
|
||||
import static stanhebben.zenscript.util.ZenTypeUtil.internal;
|
||||
import static stanhebben.zenscript.util.ZenTypeUtil.signature;
|
||||
import stanhebben.zenscript.value.IAny;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
import static stanhebben.zenscript.util.ZenTypeUtil.*;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Stan
|
||||
@@ -396,12 +396,12 @@ public class AnyClassWriter {
|
||||
definition.defineHashCode(outputHashCode);
|
||||
outputHashCode.end();
|
||||
|
||||
|
||||
MethodOutput outputEquals = new MethodOutput( writer,
|
||||
Opcodes.ACC_PUBLIC, "equals", "(Ljava/lang/Object;)Z", null,
|
||||
null); outputEquals.enableDebug(); outputEquals.start();
|
||||
definition.defineEquals(outputEquals); outputEquals.end();
|
||||
|
||||
/*
|
||||
* MethodOutput outputEquals = new MethodOutput( writer,
|
||||
* Opcodes.ACC_PUBLIC, "equals", "(Ljava/lang/Object;)Z", null,
|
||||
* null); outputEquals.enableDebug(); outputEquals.start();
|
||||
* definition.defineEquals(outputEquals); outputEquals.end();
|
||||
*/
|
||||
|
||||
writer.visitEnd();
|
||||
return writer.toByteArray();
|
||||
|
||||
@@ -194,8 +194,8 @@ public class StringUtil {
|
||||
if ((oldstr.charAt(0) != '"' || oldstr.charAt(oldstr.length() - 1) != '"')
|
||||
&& (oldstr.charAt(0) != '\'' || oldstr.charAt(oldstr.length() - 1) != '\'')) {
|
||||
// TODO: error
|
||||
// throw new TweakerExecuteException("Not a valid string constant: "
|
||||
// + oldstr);
|
||||
// throw new TweakerExecuteException("Not a valid string constant: "
|
||||
// + oldstr);
|
||||
}
|
||||
oldstr = oldstr.substring(1, oldstr.length() - 1);
|
||||
|
||||
|
||||
Reference in new issue
Block a user