Rather than using
| public MyType(String) { ... }
|
It should first check for a static method
| public static MyType valueOf(String) { ... }
|
In fact, I'd like to remove to use of the constructor since it will be incorrect
in some circumstances.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995577#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...