Add missing generics to Context internals

This commit is contained in:
Eric Anderson 2015-07-23 13:24:04 -07:00
parent 60cf5eb5da
commit eba12fb514
1 changed files with 2 additions and 2 deletions

View File

@ -524,7 +524,7 @@ public class Context {
/** /**
* Lookup the value for a key in the context inheritance chain. * Lookup the value for a key in the context inheritance chain.
*/ */
private Object lookup(Key key) { private Object lookup(Key<?> key) {
for (int i = 0; i < keyValueEntries.length; i++) { for (int i = 0; i < keyValueEntries.length; i++) {
if (key.equals(keyValueEntries[i][0])) { if (key.equals(keyValueEntries[i][0])) {
return keyValueEntries[i][1]; return keyValueEntries[i][1];
@ -733,7 +733,7 @@ public class Context {
return false; return false;
} }
Key key = (Key) o; Key<?> key = (Key<?>) o;
return key.name.equals(this.name); return key.name.equals(this.name);
} }