Skip to content

Commit ee77b7f

Browse files
authored
update copyright, minor code formatting change (#21569)
1 parent 7f2ee85 commit ee77b7f

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CppOatppServerCodegen.java

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
22
* Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech)
3-
* Copyright 2018 SmartBear Software
43
*
54
* Licensed under the Apache License, Version 2.0 (the "License");
65
* you may not use this file except in compliance with the License.
@@ -106,16 +105,16 @@ public CppOatppServerCodegen() {
106105

107106
languageSpecificPrimitives = new HashSet<>(
108107
Arrays.asList(
109-
"oatpp::String",
110-
"oatpp::Boolean",
111-
"oatpp::Int32",
112-
"oatpp::Int64",
113-
"oatpp::Vector",
114-
"oatpp::Fields",
115-
"oatpp::UnorderedSet",
116-
"oatpp::Object",
117-
"oatpp::Float64",
118-
"oatpp::Any"
108+
"oatpp::String",
109+
"oatpp::Boolean",
110+
"oatpp::Int32",
111+
"oatpp::Int64",
112+
"oatpp::Vector",
113+
"oatpp::Fields",
114+
"oatpp::UnorderedSet",
115+
"oatpp::Object",
116+
"oatpp::Float64",
117+
"oatpp::Any"
119118
));
120119

121120
typeMapping = new HashMap<>();
@@ -276,7 +275,7 @@ private void postProcessSingleOperation(OperationMap operations, CodegenOperatio
276275
/**
277276
* postProcessSingleParam - Modifies a single parameter, adjusting generated
278277
* data types for Header and Query parameters.
279-
*
278+
*
280279
* @param param CodegenParameter to be modified.
281280
*/
282281
private static void postProcessSingleParam(CodegenParameter param) {
@@ -357,7 +356,7 @@ public String getTypeDeclaration(Schema p) {
357356
return toModelName(openAPIType);
358357
}
359358

360-
String namespace = (String)additionalProperties.get("modelNamespace");
359+
String namespace = (String) additionalProperties.get("modelNamespace");
361360
return namespace + "::" + openAPIType;
362361
}
363362

0 commit comments

Comments
 (0)