diff options
Diffstat (limited to 'chapter04/src')
| -rw-r--r-- | chapter04/src/main/java/com/seaofnodes/simple/type/Type.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chapter04/src/main/java/com/seaofnodes/simple/type/Type.java b/chapter04/src/main/java/com/seaofnodes/simple/type/Type.java index 1e50bdda..466fb739 100644 --- a/chapter04/src/main/java/com/seaofnodes/simple/type/Type.java +++ b/chapter04/src/main/java/com/seaofnodes/simple/type/Type.java @@ -41,12 +41,13 @@ public class Type { public boolean isConstant() { return _type == TTOP; } - public StringBuilder print(StringBuilder sb) {return is_simple() ? sb.append(STRS[_type]) : sb;} - - public Type meet(Type other) { return Type.BOTTOM; } - @Override public final String toString() { return print(new StringBuilder()).toString(); } + + public StringBuilder print(StringBuilder sb) {return is_simple() ? sb.append(STRS[_type]) : sb;} + + public Type meet(Type other) { return Type.BOTTOM; } + } |
