Permalink
Browse files

Fix additional build warnings due to generics usage

  • Loading branch information...
sharwell committed Sep 24, 2013
1 parent 1af5923 commit 9976a1213374740bcb91e2d1a6e79b859506eba7
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/com/xmlcalabash/core/XProcConfiguration.java
@@ -83,7 +83,7 @@
public String entityResolver = null;
public String uriResolver = null;
public String errorListener = null;
- public Hashtable<QName,Class> implementations = new Hashtable<QName,Class> ();
+ public Hashtable<QName,Class<?>> implementations = new Hashtable<QName,Class<?>> ();
public Hashtable<String,String> serializationOptions = new Hashtable<String,String>();
public LogOptions logOpt = LogOptions.WRAPPED;
public Vector<String> extensionFunctions = new Vector<String>();
@@ -444,7 +444,7 @@ public void parse(XdmNode doc) {
public boolean isStepAvailable(QName type) {
if (implementations.containsKey(type)) {
- Class klass = implementations.get(type);
+ Class<?> klass = implementations.get(type);
try {
Method method = klass.getMethod("isAvailable");
Boolean available = (Boolean) method.invoke(null);
@@ -462,7 +462,7 @@ public boolean isStepAvailable(QName type) {
}
public XProcStep newStep(XProcRuntime runtime,XAtomicStep step){
- Class klass = implementations.get(step.getType());
+ Class<?> klass = implementations.get(step.getType());
if (klass == null) {
throw new XProcException("Misconfigured. No 'class' in configuration for " + step.getType());
}
@@ -828,7 +828,7 @@ private void parseImplementation(XdmNode node) {
for (String tname : nameStr.split("\\s+")) {
QName name = new QName(tname,node);
try {
- Class klass = Class.forName(value);
+ Class<?> klass = Class.forName(value);
implementations.put(name, klass);
} catch (ClassNotFoundException e) {
// nop

0 comments on commit 9976a12

Please sign in to comment.