Skip to content

Commit d94cf19

Browse files
committed
Fix PMD warning
1 parent 6805f6c commit d94cf19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

datamodel/openapi/openapi-generator/src/main/java/com/sap/cloud/sdk/datamodel/openapi/generator/GenerationConfigurationConverter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static ClientOptInput convertGenerationConfiguration(
7777

7878
private static JavaClientCodegen createCodegenConfig( @Nonnull final GenerationConfiguration config )
7979
{
80-
var primitives = Set.of("String", "Integer", "Long", "Double", "Float", "Byte");
80+
final var PRIMITIVES = Set.of("String", "Integer", "Long", "Double", "Float", "Byte");
8181
return new JavaClientCodegen()
8282
{
8383
// Custom processor to inject "x-return-nullable" extension
@@ -135,8 +135,8 @@ private void useCreatorsForInterfaceSubtypes( @Nonnull final CodegenModel m )
135135
useCreators = true;
136136
} else {
137137
candidatesSingle.add(candidate);
138-
useCreators |= primitives.contains(candidate);
139-
if( !primitives.contains(candidate) ) {
138+
useCreators |= PRIMITIVES.contains(candidate);
139+
if( !PRIMITIVES.contains(candidate) ) {
140140
nonPrimitives++;
141141
}
142142
}

0 commit comments

Comments
 (0)