You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by ma...@apache.org on 2010/10/05 15:25:02 UTC
svn commit: r1004635 -
/incubator/oodt/trunk/pushpull/src/main/java/org/apache/oodt/cas/pushpull/filerestrictions/parsers/DirStructXmlParser.java
Author: mattmann
Date: Tue Oct 5 13:25:02 2010
New Revision: 1004635
URL: http://svn.apache.org/viewvc?rev=1004635&view=rev
Log:
- progress towards OODT-22: remove unused class
Modified:
incubator/oodt/trunk/pushpull/src/main/java/org/apache/oodt/cas/pushpull/filerestrictions/parsers/DirStructXmlParser.java
Modified: incubator/oodt/trunk/pushpull/src/main/java/org/apache/oodt/cas/pushpull/filerestrictions/parsers/DirStructXmlParser.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/pushpull/src/main/java/org/apache/oodt/cas/pushpull/filerestrictions/parsers/DirStructXmlParser.java?rev=1004635&r1=1004634&r2=1004635&view=diff
==============================================================================
--- incubator/oodt/trunk/pushpull/src/main/java/org/apache/oodt/cas/pushpull/filerestrictions/parsers/DirStructXmlParser.java (original)
+++ incubator/oodt/trunk/pushpull/src/main/java/org/apache/oodt/cas/pushpull/filerestrictions/parsers/DirStructXmlParser.java Tue Oct 5 13:25:02 2010
@@ -26,11 +26,11 @@ import org.apache.oodt.cas.pushpull.file
import org.apache.oodt.cas.pushpull.exceptions.ParserException;
import org.apache.oodt.cas.pushpull.expressions.GlobalVariables;
import org.apache.oodt.cas.pushpull.expressions.Method;
-import org.apache.oodt.cas.pushpull.expressions.MethodRepo;
import org.apache.oodt.cas.pushpull.expressions.Variable;
//JDK imports
import java.io.FileInputStream;
+import java.util.HashMap;
import java.util.StringTokenizer;
import java.util.logging.Level;
import java.util.logging.Logger;
@@ -55,6 +55,8 @@ public class DirStructXmlParser implemen
private static final Logger LOG = Logger.getLogger(DirStructXmlParser.class
.getName());
+
+ private static final HashMap<String, Method> methodRepo = new HashMap<String, Method>();
public DirStructXmlParser() {}
@@ -171,7 +173,7 @@ public class DirStructXmlParser implemen
}
if (input.substring(j, j + 1).charAt(0) == '(') {
- Method m = MethodRepo.hashMap.get(method.toString());
+ Method m = methodRepo.get(method.toString());
StringTokenizer st = new StringTokenizer(input
.substring(j, input.substring(j).indexOf(")")
+ j), "#\", ()");
@@ -326,7 +328,7 @@ public class DirStructXmlParser implemen
}
// store Method in list of Methods
- MethodRepo.hashMap.put(method.getName(), method);
+ methodRepo.put(method.getName(), method);
}
}
}