added type cast to fix JDK version mismatch issue

This commit is contained in:
Inderjeet Singh 2010-04-03 05:53:11 +00:00
parent 7a115785b7
commit d46fea80db

View File

@ -63,8 +63,9 @@ class ParamMap {
return contents.get(paramName);
}
@SuppressWarnings("unchecked")
public <T> T get(TypedKey<T> key) {
return get(key.getName(), key.getClassOfT());
return (T) get(key.getName(), key.getClassOfT());
}
@SuppressWarnings("unchecked")