From badfd86844c7b60b4e01282a1828da44dac31846 Mon Sep 17 00:00:00 2001 From: jochen Date: Mon, 15 Mar 1999 17:42:56 +0000 Subject: [PATCH] no showing of errors git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@416 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/type/IntegerType.java | 65 +-------------------------------- 1 file changed, 1 insertion(+), 64 deletions(-) diff --git a/jode/jode/type/IntegerType.java b/jode/jode/type/IntegerType.java index 7749130..3e548c5 100644 --- a/jode/jode/type/IntegerType.java +++ b/jode/jode/type/IntegerType.java @@ -110,69 +110,6 @@ public class IntegerType extends Type { return new IntegerType(getSuperTypes()); } -// /** -// * Returns the common sub type of this and type. -// * @param type the other type. -// * @return the common sub type. -// */ -// public Type getSpecializedType(Type type) { -// /* tError , x -> tError -// * x , tUnknown -> x -// * Integer , Integer -> possTypes1 & possTypes2 == 0 ? tError -// */ -// if (type == tUnknown) -// return this; -// if (type.typecode != TC_INTEGER) -// return tError; -// IntegerType other = (IntegerType) type; -// int mergeTypes = possTypes & other.possTypes; -// /* HINTING XXX */ -// if (mergeTypes == possTypes) -// return this; -// if (mergeTypes == other.possTypes) -// return other; -// if (mergeTypes == 0) -// return tError; -// return new IntegerType(mergeTypes); -// } - -// /** -// * Returns the common super type of this and type. -// * @param type the other type. -// * @return the common super type. -// */ -// public Type getGeneralizedType(Type type) { -// return getSpecializedType(type); -// } - -// /** -// * Create the type corresponding to the range from bottomType to this. -// * @param bottomType the start point of the range -// * @return the range type, or tError if not possible. -// */ -// public Type intersection(Type bottomType) { -// /* Note that this can't be tBoolByte or tBoolInt */ -// /* x , tError -> tError -// * object , tUnknown -> -// * boolean , tUnknown -> boolean -// * int , tUnknown -> -// * boolint , tUnknown -> boolint -// * tUnknown, x -> getSuperTypes(x) -// * tUnknown, short -> -// * short , byte -> -// * byte , short -> tError -// * tUnknown, float -> float -// */ -// if (bottomType == tUnknown) -// return this; -// else if (bottomType.typecode != TC_INTEGER) -// return tError; -// /*XXX HINTING*/ - -// int result = ((IntegerType)bottomType).possTypes & possTypes; -// return new IntegerType(result); -// } - /** * Checks if this type represents a valid type instead of a list * of minimum types. @@ -271,7 +208,7 @@ public class IntegerType extends Type { return other; } Type result = mergeTypes == 0 ? tError : new IntegerType(mergeTypes); - if (Decompiler.isTypeDebugging || result == tError) { + if (Decompiler.isTypeDebugging) { Decompiler.err.println("intersecting "+ this +" and "+ type + " to " + result); }