Even more WTF
And I thought that I had seen everything. But I hadn’t yet seen a wrapper to a String!!
public class OneVariableGenericVO implements java.io.Serializable { private String varName; public OneVariableGenericVO() { } public OneVariableGenericVO(String varName) { setVarName(varName); } public String getVarName() { return this.varName; } public void setVarName(String varName) { this.varName = varName; } }
SO instead of using a String someone had the brilliant idea to wrap a String into an object and use this instead. What can I say? I am speechless.
Categories: WTF
Someone needs to jave a unique object to use as a message in an MDB. This MDB already “handles” a String message in some other way………….
How about that?
I am not sure I understand Antonis. A String object is unique, in every way.