Skip to content

Commit

Permalink
Fix #119 Add missing generics in method parameters
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Thomas <markt@apache.org>
  • Loading branch information
markt-asf committed Jan 27, 2020
1 parent ac70f2e commit 1e9f39f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/src/main/java/jakarta/el/ELContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public boolean isPropertyResolved() {
* @param contextObject The context object to add to the collection.
* @throws NullPointerException if key is null or contextObject is null.
*/
public void putContext(Class key, Object contextObject) {
public void putContext(Class<?> key, Object contextObject) {
if (key == null || contextObject == null) {
throw new NullPointerException();
}
Expand All @@ -178,7 +178,7 @@ public void putContext(Class key, Object contextObject) {
* @return The context object associated with the given key, or null if no such context was found.
* @throws NullPointerException if key is null.
*/
public Object getContext(Class key) {
public Object getContext(Class<?> key) {
if (key == null) {
throw new NullPointerException();
}
Expand Down
4 changes: 2 additions & 2 deletions api/src/main/java/jakarta/el/StandardELContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public StandardELContext(ELContext context) {
}

@Override
public void putContext(Class key, Object contextObject) {
public void putContext(Class<?> key, Object contextObject) {
if (delegate != null) {
delegate.putContext(key, contextObject);
} else {
Expand All @@ -114,7 +114,7 @@ public void putContext(Class key, Object contextObject) {
}

@Override
public Object getContext(Class key) {
public Object getContext(Class<?> key) {
if (delegate == null) {
return super.getContext(key);
}
Expand Down

0 comments on commit 1e9f39f

Please sign in to comment.