Fix miscellaneous compiler warnings

Remove unused imports, remove unused local variables, parameterize
generic types, suppress warnings.

Change-Id: I8e4867d9a03ff774c1f8e04ff9853b0afb676e69
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2011-11-03 08:54:22 +01:00
parent 0d957de5d3
commit 0009ace932
13 changed files with 12 additions and 28 deletions

View File

@@ -82,6 +82,7 @@ public class PrologEnvironment extends BufferingPrologControl {
* @param sv unique key.
* @return the value; null if not stored.
*/
@SuppressWarnings("unchecked")
public <T> T get(StoredValue<T> sv) {
return (T) storedValues.get(sv);
}
@@ -93,6 +94,7 @@ public class PrologEnvironment extends BufferingPrologControl {
* @param sv unique key.
* @param obj the value to store under {@code sv}.
*/
@SuppressWarnings("unchecked")
public <T> void set(StoredValue<T> sv, T obj) {
storedValues.put((StoredValue<Object>) sv, obj);
}