diff --git a/src/Kiota.Builder/Refiners/JavaRefiner.cs b/src/Kiota.Builder/Refiners/JavaRefiner.cs index feb6ba62e2..33e63c41b7 100644 --- a/src/Kiota.Builder/Refiners/JavaRefiner.cs +++ b/src/Kiota.Builder/Refiners/JavaRefiner.cs @@ -141,7 +141,7 @@ public override Task Refine(CodeNamespace generatedCode, CancellationToken cance SplitLongDiscriminatorMethods(generatedCode); AddPrimaryErrorMessage(generatedCode, "getMessage", - () => new CodeType { Name = "string", IsNullable = false, IsExternal = true } + () => new CodeType { Name = "String", IsNullable = false, IsExternal = true } ); }, cancellationToken); }