Skip to content

Commit

Permalink
Fix additional build warnings due to generics usage
Browse files Browse the repository at this point in the history
  • Loading branch information
sharwell committed Sep 24, 2013
1 parent 1af5923 commit 9976a12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/com/xmlcalabash/core/XProcConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public class XProcConfiguration {
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>();
Expand Down Expand Up @@ -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);
Expand All @@ -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());
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9976a12

Please sign in to comment.