Author: dgolovin
Date: 2007-10-24 20:22:02 -0400 (Wed, 24 Oct 2007)
New Revision: 4498
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesDataFilterSliderTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesDataTableScrollerTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesSeparatorTemplate.java
Log:
Code clean up.
new Integer() replaced for Integer.valueOf()
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesDataFilterSliderTemplate.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesDataFilterSliderTemplate.java 2007-10-25
00:21:58 UTC (rev 4497)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesDataFilterSliderTemplate.java 2007-10-25
00:22:02 UTC (rev 4498)
@@ -350,7 +350,7 @@
}
try {
num = num.trim();
- Integer i = new Integer(num);
+ Integer i = Integer.valueOf(num);
return i.intValue();
} catch (NumberFormatException e) {
return 0;
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesDataTableScrollerTemplate.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesDataTableScrollerTemplate.java 2007-10-25
00:21:58 UTC (rev 4497)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesDataTableScrollerTemplate.java 2007-10-25
00:22:02 UTC (rev 4498)
@@ -281,7 +281,7 @@
}
try {
num = num.trim();
- Integer i = new Integer(num);
+ Integer i = Integer.valueOf(num);
return i.intValue();
} catch (NumberFormatException e) {
return 0;
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesSeparatorTemplate.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesSeparatorTemplate.java 2007-10-25
00:21:58 UTC (rev 4497)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesSeparatorTemplate.java 2007-10-25
00:22:02 UTC (rev 4498)
@@ -269,7 +269,7 @@
*/
private boolean isNumber(String num) {
try {
- new Integer(num);
+ Integer.valueOf(num);
return true;
} catch (NumberFormatException e) {
return false;
Show replies by date