Author: julien_viet
Date: 2009-10-29 13:39:04 -0400 (Thu, 29 Oct 2009)
New Revision: 442
Modified:
portal/branches/performance/component/common/src/main/java/org/exoplatform/commons/utils/Printer.java
portal/branches/performance/pom.xml
Log:
GTNPORTAL-133 : Chromattic memory leak
Modified:
portal/branches/performance/component/common/src/main/java/org/exoplatform/commons/utils/Printer.java
===================================================================
---
portal/branches/performance/component/common/src/main/java/org/exoplatform/commons/utils/Printer.java 2009-10-29
17:30:25 UTC (rev 441)
+++
portal/branches/performance/component/common/src/main/java/org/exoplatform/commons/utils/Printer.java 2009-10-29
17:39:04 UTC (rev 442)
@@ -23,6 +23,8 @@
import java.io.Writer;
/**
+ * Extend the writer class by providing various method for printing text.
+ *
* @author <a href="mailto:julien.viet@exoplatform.com">Julien
Viet</a>
* @version $Revision$
*/
@@ -33,13 +35,13 @@
{
}
- public void println(Object o)
+ public final void println(Object o)
{
print(o);
println();
}
- public void println()
+ public final void println()
{
try
{
@@ -50,7 +52,7 @@
}
}
- public void print(Object o)
+ public final void print(Object o)
{
try
{
@@ -64,11 +66,10 @@
}
else
{
- String s = (o == null) ? "null" : o.toString();
- write(s);
+ write(o.toString());
}
}
- catch (IOException e)
+ catch (IOException ignore)
{
}
}
Modified: portal/branches/performance/pom.xml
===================================================================
--- portal/branches/performance/pom.xml 2009-10-29 17:30:25 UTC (rev 441)
+++ portal/branches/performance/pom.xml 2009-10-29 17:39:04 UTC (rev 442)
@@ -49,7 +49,7 @@
<org.jboss.identity.idm>1.0.0.Beta3</org.jboss.identity.idm>
<org.gatein.wsrp.version>1.0.0-Beta01</org.gatein.wsrp.version>
<org.gatein.mop.version>1.0.0-Beta09</org.gatein.mop.version>
- <version.chromattic>1.0.0-beta5</version.chromattic>
+ <version.chromattic>1.0.0-beta6</version.chromattic>
<version.reflect>1.0.0-beta3</version.reflect>
<!-- ************** -->