Skip to content

Commit

Permalink
Make JsonArray.getList generic
Browse files Browse the repository at this point in the history
  • Loading branch information
purplefox committed Mar 24, 2015
1 parent da8bdf9 commit 0f30048
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/main/java/io/vertx/core/json/JsonArray.java
Expand Up @@ -454,8 +454,9 @@ public boolean isEmpty() {
*
* @return the underlying List
*/
public List getList() {
return list;
@SuppressWarnings("unchecked")
public <T> List<T> getList() {
return (List<T>)list;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/vertx/core/net/TCPSSLOptions.java
Expand Up @@ -155,7 +155,7 @@ public TCPSSLOptions(JsonObject json) {
this.crlValues = new ArrayList<>();
arr = json.getJsonArray("crlValues");
if (arr != null) {
((List<byte[]>) arr.getList()).stream().map(Buffer::buffer).forEach(crlValues::add);
(arr.<byte[]>getList()).stream().map(Buffer::buffer).forEach(crlValues::add);
}
}

Expand Down

0 comments on commit 0f30048

Please sign in to comment.