Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaTP committed Sep 20, 2023
1 parent 406363e commit 9042405
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Kiota.Builder/Refiners/CommonLanguageRefiner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ current.Parent is CodeClass parentClass &&
ReturnType = (CodeTypeBase)currentProperty.Type.Clone(),
Documentation = new()
{
Description = $"Gets the {currentProperty.Name} property value. {currentProperty.Documentation.Description}",
Description = $"Gets the {currentProperty.WireName} property value. {currentProperty.Documentation.Description}",
},
AccessedProperty = currentProperty,
Deprecation = currentProperty.Deprecation,
Expand All @@ -200,7 +200,7 @@ current.Parent is CodeClass parentClass &&
Kind = CodeMethodKind.Setter,
Documentation = new()
{
Description = $"Sets the {currentProperty.Name} property value. {currentProperty.Documentation.Description}",
Description = $"Sets the {currentProperty.WireName} property value. {currentProperty.Documentation.Description}",
},
AccessedProperty = currentProperty,
ReturnType = new CodeType
Expand Down
5 changes: 3 additions & 2 deletions src/Kiota.Builder/Refiners/JavaRefiner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,10 @@ private static void AddEnumSetImport(CodeElement currentElement)
private const string MultipartBodyClassName = "MultipartBody";
private static void CorrectCommonNames(CodeElement currentElement)
{
if (currentElement is CodeMethod m)
if (currentElement is CodeMethod m &&
currentElement.Parent is CodeClass parentClass)
{
m.Name = m.Name.ToFirstCharacterLowerCase();
parentClass.RenameChildElement(m.Name, m.Name.ToFirstCharacterLowerCase());
}
else if (currentElement is CodeIndexer i)
{
Expand Down

0 comments on commit 9042405

Please sign in to comment.