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

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Fri Nov 6 11:14:44 CST 2009


Author: hategan
Date: 2009-11-06 11:14:44 -0600 (Fri, 06 Nov 2009)
New Revision: 3190

Modified:
   trunk/src/org/griphyn/vdl/mapping/file/ConcurrentMapper.java
Log:
null looks ugly if prefix is not specified

Modified: trunk/src/org/griphyn/vdl/mapping/file/ConcurrentMapper.java
===================================================================
--- trunk/src/org/griphyn/vdl/mapping/file/ConcurrentMapper.java	2009-11-06 17:04:17 UTC (rev 3189)
+++ trunk/src/org/griphyn/vdl/mapping/file/ConcurrentMapper.java	2009-11-06 17:14:44 UTC (rev 3190)
@@ -24,7 +24,8 @@
 
 	public void setParams(Map params) {
 		String prefix = PARAM_PREFIX.getStringValue(this);
-		prefix = "_concurrent/" + prefix + "-" + PARAM_THREAD_PREFIX.getValue(params);
+		prefix = "_concurrent/" + (prefix == null ? "" : prefix + "-") + 
+		    PARAM_THREAD_PREFIX.getValue(params);
 		PARAM_PREFIX.setValue(params, prefix);
 		super.setParams(params);
 	}




More information about the Swift-commit mailing list