Author: dgolovin
Date: 2007-12-19 19:12:02 -0500 (Wed, 19 Dec 2007)
New Revision: 5386
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/TextFieldEditor.java
Log:
Cleanup the code:
1. new Long(value) replaced for Long.valueOf(value)
2. new String() removed
3. new Boolean(true/false) replaced to Boolean.TRUE/FALSE
4. Unused packages were removed from seam.plugins
5. Throwing of NullPointerException replaced to IllegalArgument Exception
6. catch Exception replaced to particular Exception types in several places
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/TextFieldEditor.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/TextFieldEditor.java 2007-12-20
00:11:58 UTC (rev 5385)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/TextFieldEditor.java 2007-12-20
00:12:02 UTC (rev 5386)
@@ -143,7 +143,7 @@
*/
private String checkCollection(Object value){
- return value != null && (((Collection)value).size() > 0) ?
prepareCollectionToString((Collection)value) : new String(""); //$NON-NLS-1$
+ return value != null && (((Collection)value).size() > 0) ?
prepareCollectionToString((Collection)value) : ""; //$NON-NLS-1$
}
/*
@@ -168,7 +168,7 @@
* @return
*/
private String checkSimple(Object value){
- return (value != null) ? value.toString() : new String(""); //$NON-NLS-1$
+ return (value != null) ? value.toString() : ""; //$NON-NLS-1$
}
/**
Show replies by date