Author: dgolovin
Date: 2007-12-19 19:11:58 -0500 (Wed, 19 Dec 2007)
New Revision: 5385
Modified:
trunk/common/plugins/org.jboss.tools.common.verification/src/org/jboss/tools/common/verification/vrules/VResultTemplate.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/common/plugins/org.jboss.tools.common.verification/src/org/jboss/tools/common/verification/vrules/VResultTemplate.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.verification/src/org/jboss/tools/common/verification/vrules/VResultTemplate.java 2007-12-20
00:11:55 UTC (rev 5384)
+++
trunk/common/plugins/org.jboss.tools.common.verification/src/org/jboss/tools/common/verification/vrules/VResultTemplate.java 2007-12-20
00:11:58 UTC (rev 5385)
@@ -157,7 +157,7 @@
VMessageFormat parent = format.getParent();
if (parent != null) {
Object[] params2 = new Object[] {sourceObject, sourcePosition,
- targetObject, targetPosition, message, type, new
Integer(significance)};
+ targetObject, targetPosition, message,
type,Integer.valueOf(significance)};
message = parent.format(params2);
}
result.setMessage(message);
Show replies by date