geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r697509 - in /geronimo/gshell/trunk/gshell-support: gshell-chronos/src/main/java/org/apache/geronimo/gshell/chronos/Duration.java gshell-yarn/src/main/java/org/apache/geronimo/gshell/yarn/StandardToStringStyle.java
Date Sun, 21 Sep 2008 13:08:29 GMT
Author: jdillon
Date: Sun Sep 21 06:08:28 2008
New Revision: 697509

URL: http://svn.apache.org/viewvc?rev=697509&view=rev
Log:
More muck to hide the internal details of gshell-yarn

Modified:
    geronimo/gshell/trunk/gshell-support/gshell-chronos/src/main/java/org/apache/geronimo/gshell/chronos/Duration.java
    geronimo/gshell/trunk/gshell-support/gshell-yarn/src/main/java/org/apache/geronimo/gshell/yarn/StandardToStringStyle.java

Modified: geronimo/gshell/trunk/gshell-support/gshell-chronos/src/main/java/org/apache/geronimo/gshell/chronos/Duration.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-support/gshell-chronos/src/main/java/org/apache/geronimo/gshell/chronos/Duration.java?rev=697509&r1=697508&r2=697509&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-support/gshell-chronos/src/main/java/org/apache/geronimo/gshell/chronos/Duration.java
(original)
+++ geronimo/gshell/trunk/gshell-support/gshell-chronos/src/main/java/org/apache/geronimo/gshell/chronos/Duration.java
Sun Sep 21 06:08:28 2008
@@ -19,12 +19,11 @@
 
 package org.apache.geronimo.gshell.chronos;
 
+import org.apache.geronimo.gshell.yarn.Yarn;
+
 import java.io.Serializable;
 import java.util.concurrent.TimeUnit;
 
-import org.apache.geronimo.gshell.yarn.ToStringBuilder;
-import org.apache.geronimo.gshell.yarn.ToStringStyle;
-
 /**
  * A representaion of an immutable duration of time.
  * 
@@ -63,10 +62,7 @@
     }
     
     public String toString() {
-        return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
-                .append(value)
-                .append(unit)
-                .toString();
+        return Yarn.render(this);
     }
 
     public boolean equals(final Object obj) {

Modified: geronimo/gshell/trunk/gshell-support/gshell-yarn/src/main/java/org/apache/geronimo/gshell/yarn/StandardToStringStyle.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-support/gshell-yarn/src/main/java/org/apache/geronimo/gshell/yarn/StandardToStringStyle.java?rev=697509&r1=697508&r2=697509&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-support/gshell-yarn/src/main/java/org/apache/geronimo/gshell/yarn/StandardToStringStyle.java
(original)
+++ geronimo/gshell/trunk/gshell-support/gshell-yarn/src/main/java/org/apache/geronimo/gshell/yarn/StandardToStringStyle.java
Sun Sep 21 06:08:28 2008
@@ -38,7 +38,7 @@
  * @since 1.0
  * @version $Id$
  */
-public class StandardToStringStyle extends ToStringStyle {
+class StandardToStringStyle extends ToStringStyle {
 
     /**
      * Required for serialization support.



Mime
View raw message