Skip to content

Commit 9763b23

Browse files
committed
apply Vincent's fixes from #274
1 parent c1d461d commit 9763b23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GraphODataTemplateWriter/CodeHelpers/Java/TypeHelperJava.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public static string TypeName(this OdcmObject c)
154154

155155
public static string MethodName(this OdcmObject c)
156156
{
157-
return c.Name.Substring(c.Name.IndexOf(".") + 1).ToUpperFirstChar();
157+
return c.Name.Substring(c.Name.IndexOf(".") + 1).SanitizePropertyName(c).ToUpperFirstChar();
158158
}
159159

160160
public static string MethodFullName(this OdcmObject c)
@@ -1438,7 +1438,7 @@ public static string CreatePropertyDef(IEnumerable<OdcmProperty> properties, boo
14381438
propertyName.SplitCamelCase(),
14391439
property.Name,
14401440
propertyType,
1441-
property.Name.SanitizePropertyName(property).ToLowerFirstChar(),
1441+
property.Name.ToLowerFirstChar().SanitizePropertyName(property),
14421442
GetSanitizedDescription(property));
14431443
}
14441444
return sb.ToString();

0 commit comments

Comments
 (0)