Author: dgolovin
Date: 2009-06-26 14:03:33 -0400 (Fri, 26 Jun 2009)
New Revision: 16228
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesLayoutTemplate.java
Log:
replace catch Exception for NumberFormatException
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesLayoutTemplate.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesLayoutTemplate.java 2009-06-26
16:15:01 UTC (rev 16227)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesLayoutTemplate.java 2009-06-26
18:03:33 UTC (rev 16228)
@@ -232,7 +232,7 @@
if ((null != widthStr) && widthStr.endsWith(Constants.PERCENT)) {
try {
result = Double.parseDouble(widthStr.substring(0, widthStr.length()-1));
- } catch (Exception e) {
+ } catch (NumberFormatException e) {
/*
* Cannot parse - skip.
*/
Show replies by date