myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r891305 - /myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/Measure.java
Date Wed, 16 Dec 2009 16:46:28 GMT
Author: lofwyr
Date: Wed Dec 16 16:46:28 2009
New Revision: 891305

URL: http://svn.apache.org/viewvc?rev=891305&view=rev
Log:
TOBAGO-815: reduce warnings, allow strings without measure unit.

Modified:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/Measure.java

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/Measure.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/Measure.java?rev=891305&r1=891304&r2=891305&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/Measure.java
(original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/Measure.java
Wed Dec 16 16:46:28 2009
@@ -52,7 +52,6 @@
       return new PixelMeasure(Integer.parseInt(value.substring(0, value.length() - 2)));
     }
     if (value.matches("\\d+")) {// XXX no regexp here: user LayoutTokens.parse !!!
-      LOG.warn("Measure parser found value without unit. Assuming px for value='" + value
+ "'.");
       return new PixelMeasure(Integer.parseInt(value));
     }
     throw new IllegalArgumentException("Can't parse to any measure: '" + value + "'");



Mime
View raw message