update copyright, minor code formatting change (#21569)

This commit is contained in:
William Cheng 2025-07-16 15:48:39 +08:00 committed by GitHub
parent 7f2ee8520e
commit ee77b7f4f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,5 @@
/*
* Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech)
* Copyright 2018 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -106,16 +105,16 @@ public class CppOatppServerCodegen extends AbstractCppCodegen {
languageSpecificPrimitives = new HashSet<>(
Arrays.asList(
"oatpp::String",
"oatpp::Boolean",
"oatpp::Int32",
"oatpp::Int64",
"oatpp::Vector",
"oatpp::Fields",
"oatpp::UnorderedSet",
"oatpp::Object",
"oatpp::Float64",
"oatpp::Any"
"oatpp::String",
"oatpp::Boolean",
"oatpp::Int32",
"oatpp::Int64",
"oatpp::Vector",
"oatpp::Fields",
"oatpp::UnorderedSet",
"oatpp::Object",
"oatpp::Float64",
"oatpp::Any"
));
typeMapping = new HashMap<>();
@ -276,7 +275,7 @@ public class CppOatppServerCodegen extends AbstractCppCodegen {
/**
* postProcessSingleParam - Modifies a single parameter, adjusting generated
* data types for Header and Query parameters.
*
*
* @param param CodegenParameter to be modified.
*/
private static void postProcessSingleParam(CodegenParameter param) {
@ -357,7 +356,7 @@ public class CppOatppServerCodegen extends AbstractCppCodegen {
return toModelName(openAPIType);
}
String namespace = (String)additionalProperties.get("modelNamespace");
String namespace = (String) additionalProperties.get("modelNamespace");
return namespace + "::" + openAPIType;
}