Skip to content

Commit

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

/**
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/io/vertx/core/json/JsonObject.java
Expand Up @@ -661,9 +661,8 @@ public JsonObject copy() {
*
* @return the underlying Map.
*/
@SuppressWarnings("unchecked")
public <T> Map<String, T> getMap() {
return (Map<String, T>)map;
public Map<String, Object> getMap() {
return map;
}

/**
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) {
(arr.<byte[]>getList()).stream().map(Buffer::buffer).forEach(crlValues::add);
((List<byte[]>) arr.getList()).stream().map(Buffer::buffer).forEach(crlValues::add);
}
}

Expand Down

0 comments on commit d9114db

Please sign in to comment.