You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2009/09/29 15:57:53 UTC
svn commit: r819953 -
/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlStyleMap.java
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));
}