Skip to content

Commit

Permalink
[playframework#331] Removing compiler error on older sun Java compile…
Browse files Browse the repository at this point in the history
…r (on Windows)
  • Loading branch information
mbknor committed Sep 26, 2011
1 parent 8b8c19e commit 14e6b33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions framework/src/play/db/jpa/GenericModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class GenericModel extends JPABase {
@Deprecated
public static <T extends JPABase> T create(Class<?> type, String name, Map<String, String[]> params, Annotation[] annotations) {
ParamNode rootParamNode = ParamNode.convert(params);
return create(rootParamNode, name, type, annotations);
return (T)create(rootParamNode, name, type, annotations);
}

public static <T extends JPABase> T create(ParamNode rootParamNode, String name, Class<?> type, Annotation[] annotations) {
Expand All @@ -64,7 +64,7 @@ public static <T extends JPABase> T create(ParamNode rootParamNode, String name,
@Deprecated
public static <T extends JPABase> T edit(Object o, String name, Map<String, String[]> params, Annotation[] annotations) {
ParamNode rootParamNode = ParamNode.convert(params);
return edit( rootParamNode, name, o, annotations);
return (T)edit( rootParamNode, name, o, annotations);
}

@SuppressWarnings("deprecation")
Expand Down Expand Up @@ -179,7 +179,7 @@ public static <T extends JPABase> T edit(ParamNode rootParamNode, String name, O
@Deprecated
public <T extends GenericModel> T edit(String name, Map<String, String[]> params) {
ParamNode rootParamNode = ParamNode.convert(params);
return edit(rootParamNode, name, this, null);
return (T)edit(rootParamNode, name, this, null);
}

public <T extends GenericModel> T edit(ParamNode rootParamNode, String name) {
Expand Down

0 comments on commit 14e6b33

Please sign in to comment.