[Swift-commit] r3639 - trunk/src/org/griphyn/vdl/util
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Wed Sep 22 12:37:18 CDT 2010
Author: wozniak
Date: 2010-09-22 12:37:18 -0500 (Wed, 22 Sep 2010)
New Revision: 3639
Modified:
trunk/src/org/griphyn/vdl/util/VDL2ConfigProperties.java
Log:
Use generics
Modified: trunk/src/org/griphyn/vdl/util/VDL2ConfigProperties.java
===================================================================
--- trunk/src/org/griphyn/vdl/util/VDL2ConfigProperties.java 2010-09-22 17:36:51 UTC (rev 3638)
+++ trunk/src/org/griphyn/vdl/util/VDL2ConfigProperties.java 2010-09-22 17:37:18 UTC (rev 3639)
@@ -25,10 +25,10 @@
public static final String WRAPPERLOG_ALWAYS_TRANSFER = "wrapperlog.always.transfer";
public static final String SITEDIR_KEEP = "sitedir.keep";
public static final String PROVENANCE_LOG = "provenance.log";
- public static final Map PROPERTIES;
+ public static final Map<String, PropInfo> PROPERTIES;
static {
- PROPERTIES = new TreeMap();
+ PROPERTIES = new TreeMap<String, PropInfo>();
PROPERTIES.put(POOL_FILE, new PropInfo("file",
"Points to the location of the sites.xml file"));
PROPERTIES.put(TC_FILE, new PropInfo("file", "Points to the location of the tc.data file"));
@@ -118,12 +118,12 @@
}
- public static Map getPropertyDescriptions() {
+ public static Map<String, PropInfo> getPropertyDescriptions() {
return PROPERTIES;
}
public static String getPropertyDescription(String name) {
- return (String) PROPERTIES.get(name);
+ return PROPERTIES.get(name).desc;
}
public static class PropInfo {
More information about the Swift-commit
mailing list