Skip to content

Commit 3c74826

Browse files
author
Brian Melton
committed
Fixing Edm.* namespaced return types not mapping to java.lang types
1 parent c6990c5 commit 3c74826

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Templates/Android/BaseModel.template.tt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,9 @@
383383
}
384384

385385
public string ReturnType(OdcmObject c) {
386-
if (c.AsOdcmMethod().ReturnType != null) {
387-
return c.AsOdcmMethod().ReturnType.Name.ToUpperFirstChar();
386+
var returnType = c.AsOdcmMethod().ReturnType;
387+
if (returnType != null) {
388+
return returnType.GetTypeString();
388389
}
389390
return "Void";
390391
}

0 commit comments

Comments
 (0)