Skip to content

Commit

Permalink
Adapt to codegen changes wrt async result type
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Jul 1, 2024
1 parent 589901e commit ad77d83
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,6 @@ public String loadResource(String resource, String moduleName) {
}
}

public boolean isResultHandler(ParamInfo param) {
return param != null &&
param.getType().getKind() == ClassKind.HANDLER &&
((ParameterizedTypeInfo)param.getType()).getArg(0).getKind() == ClassKind.ASYNC_RESULT;
}

public static String generateDeserializeDataObject(String stmt, ClassTypeInfo doTypeInfo) {
MapperInfo deserializer = doTypeInfo.getDataObject().getDeserializer();
String s;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,17 +135,6 @@ private boolean isLegalAsyncResultType(TypeInfo resultType) {
return false;
}

private boolean isLegalHandlerAsyncResultType(TypeInfo type) {
if (type.getErased().getKind() == ClassKind.HANDLER) {
TypeInfo eventType = ((ParameterizedTypeInfo) type).getArgs().get(0);
if (eventType.getErased().getKind() == ClassKind.ASYNC_RESULT) {
TypeInfo resultType = ((ParameterizedTypeInfo) eventType).getArgs().get(0);
return isLegalAsyncResultType(resultType);
}
}
return false;
}

private boolean isLegalContainerParam(TypeInfo type) {
TypeInfo raw = type.getRaw();
if (raw.getName().equals(List.class.getName()) || raw.getName().equals(Set.class.getName())) {
Expand Down

0 comments on commit ad77d83

Please sign in to comment.