[Swift-commit] r2594 - trunk/src/org/griphyn/vdl/mapping

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Mon Feb 23 09:06:33 CST 2009


Author: benc
Date: 2009-02-23 09:06:32 -0600 (Mon, 23 Feb 2009)
New Revision: 2594

Modified:
   trunk/src/org/griphyn/vdl/mapping/ExternalDataNode.java
Log:
remove unused numeric value handling from ExternalDataNode.toString

Modified: trunk/src/org/griphyn/vdl/mapping/ExternalDataNode.java
===================================================================
--- trunk/src/org/griphyn/vdl/mapping/ExternalDataNode.java	2009-02-23 15:04:29 UTC (rev 2593)
+++ trunk/src/org/griphyn/vdl/mapping/ExternalDataNode.java	2009-02-23 15:06:32 UTC (rev 2594)
@@ -76,23 +76,6 @@
 	 * text description.
 	 */
 	public String toString() {
-		if (this.value != null && !(this.value instanceof Exception)) {
-			// special handling for ints...
-			if (this.getType().equals(Types.INT)) {
-				try {
-					Number n = (Number) this.getValue();
-					return String.valueOf(n.intValue());
-				}
-				catch (ClassCastException e) {
-					throw new RuntimeException("Internal type error. Value is not a Number for "
-							+ getDisplayableName() + getPathFromRoot());
-				}
-			}
-			else {
-				return this.value.toString();
-			}
-		}
-
 		String prefix = this.getClass().getName();
 
 		prefix = prefix + " identifier "+this.getIdentifier(); 




More information about the Swift-commit mailing list