Skip to content

Commit

Permalink
Suppress unchecked cast warning
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrf authored and ph2734 committed May 15, 2012
1 parent 81d102a commit 5a0997f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions framework/src/play/src/main/java/play/mvc/Http.java
Expand Up @@ -384,6 +384,7 @@ public JsonNode asJson() {
/**
* Cast this RequestBody as T if possible.
*/
@SuppressWarnings("unchecked")
public <T> T as(Class<T> tType) {
if(this.getClass().isAssignableFrom(tType)) {
return (T)this;
Expand Down

0 comments on commit 5a0997f

Please sign in to comment.