Revision: 5648 http://jnode.svn.sourceforge.net/jnode/?rev=5648&view=rev Author: fduminy Date: 2009-08-16 09:50:44 +0000 (Sun, 16 Aug 2009)
Log Message: ----------- restored toString method Modified Paths: -------------- trunk/core/src/core/org/jnode/vm/memmgr/def/DefHeapStatistics.java Modified: trunk/core/src/core/org/jnode/vm/memmgr/def/DefHeapStatistics.java =================================================================== --- trunk/core/src/core/org/jnode/vm/memmgr/def/DefHeapStatistics.java 2009-08-15 20:05:41 UTC (rev 5647) +++ trunk/core/src/core/org/jnode/vm/memmgr/def/DefHeapStatistics.java 2009-08-16 09:50:44 UTC (rev 5648) @@ -94,6 +94,20 @@ } } + /** + * {...@inheritdoc} + */ + public String toString() { + final StringBuilder sb = new StringBuilder(); + try { + writeTo(sb); + } catch (IOException e) { + // normally, it will never happen + throw new RuntimeException(e); + } + return sb.toString(); + } + static final class HeapCounter { private final String name; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jnode-svn-commits mailing list Jnode-svn-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jnode-svn-commits