myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r819953 - /myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlStyleMap.java
Date Tue, 29 Sep 2009 13:57:53 GMT
Author: lofwyr
Date: Tue Sep 29 13:57:52 2009
New Revision: 819953

URL: http://svn.apache.org/viewvc?rev=819953&view=rev
Log:
less logging

Modified:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlStyleMap.java

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlStyleMap.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlStyleMap.java?rev=819953&r1=819952&r2=819953&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlStyleMap.java
(original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlStyleMap.java
Tue Sep 29 13:57:52 2009
@@ -41,19 +41,19 @@
   }
 
   public Integer getInt(Object o) {
-    Object obj = get(o);
-    if (obj instanceof Integer) {
-      return (Integer) obj;
+    Object object = get(o);
+    if (object instanceof Integer) {
+      return (Integer) object;
     }
-    if (obj == null) {
+    if (object == null) {
       return null;
     }
-    LOG.error("", new Exception());
-    String string = obj.toString();
+    String string = object.toString();
+    LOG.warn("Getting int value via parsing the object.toString()");
     try {
       return Integer.parseInt(string);
     } catch (NumberFormatException e) {
-      LOG.warn("TODO: Fix measure issue in HtmlStyleMap: '" + obj + "'");
+      LOG.warn("TODO: Fix measure issue in HtmlStyleMap: '" + object + "'");
       if (string.endsWith("px")) {
         return Integer.parseInt(string.substring(0, string.length() - 2));
       }



Mime
View raw message