|
|
|
@ -17,8 +17,6 @@ package de.fernflower.struct.consts; |
|
|
|
|
import java.io.DataOutputStream; |
|
|
|
|
import java.io.IOException; |
|
|
|
|
|
|
|
|
|
import de.fernflower.code.CodeConstants; |
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
* Integer, Long, Float, Double, String, Class, UTF8 |
|
|
|
|
*/ |
|
|
|
@ -107,14 +105,11 @@ public class PrimitiveConstant extends PooledConstant { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean equals(Object obj) { |
|
|
|
|
|
|
|
|
|
if(obj == null || !(obj instanceof PrimitiveConstant)) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
PrimitiveConstant cn = (PrimitiveConstant)obj; |
|
|
|
|
public boolean equals(Object o) { |
|
|
|
|
if(o == this) return true; |
|
|
|
|
if(o == null || !(o instanceof PrimitiveConstant)) return false; |
|
|
|
|
|
|
|
|
|
PrimitiveConstant cn = (PrimitiveConstant)o; |
|
|
|
|
return this.type == cn.type && |
|
|
|
|
this.isArray == cn.isArray && |
|
|
|
|
this.value.equals(cn.value); |
|
|
|
|