Skip to content

Commit 8f9ec72

Browse files
committed
Fix cubic finding
1 parent 04315dc commit 8f9ec72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2115,7 +2115,7 @@ public String removeAnnotationsWithExclusion(String dataType, String annotationT
21152115
return dataType.replaceAll("(?:(?i)@[a-z0-9\\.]*+([(].*[)]|\\s*))*+", "");
21162116
}
21172117
annotationToKeep += " ";
2118-
boolean annotationPresent = annotationToKeep != null && dataType.indexOf(annotationToKeep) >=0;
2118+
boolean annotationPresent = dataType.indexOf(annotationToKeep) >=0;
21192119
if (annotationPresent) {
21202120
dataType = dataType.replace( annotationToKeep, "%%");
21212121
}

0 commit comments

Comments
 (0)