Package edu.umd.cs.findbugs.detect
Class FindRefComparison.DynamicStringType
- java.lang.Object
-
- org.apache.bcel.generic.Type
-
- org.apache.bcel.generic.ReferenceType
-
- org.apache.bcel.generic.ObjectType
-
- edu.umd.cs.findbugs.detect.FindRefComparison.DynamicStringType
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- FindRefComparison
public static class FindRefComparison.DynamicStringType extends org.apache.bcel.generic.ObjectTypeType representing a dynamically created String. This sort of String should never be compared using reference equality.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DynamicStringType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)bytegetType()inthashCode()java.lang.StringtoString()-
Methods inherited from class org.apache.bcel.generic.ObjectType
accessibleTo, getClassName, getInstance, referencesClass, referencesClassExact, referencesInterface, referencesInterfaceExact, subclassOf
-
Methods inherited from class org.apache.bcel.generic.ReferenceType
firstCommonSuperclass, getFirstCommonSuperclass, isAssignmentCompatibleWith, isCastableTo
-
-
-
-
Method Detail
-
getType
public byte getType()
- Overrides:
getTypein classorg.apache.bcel.generic.Type
-
hashCode
public int hashCode()
- Overrides:
hashCodein classorg.apache.bcel.generic.ObjectType
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classorg.apache.bcel.generic.ObjectType
-
toString
public java.lang.String toString()
- Overrides:
toStringin classorg.apache.bcel.generic.Type
-
-