Skip to content

Commit 8e67976

Browse files
Add comment for DefaultGenerator.getPropertyAsSet
1 parent cdebf4d commit 8e67976

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,11 @@ private String calculateModelKey(String type, String ref) {
626626
}
627627
}
628628

629+
/**
630+
* this method splits the specified property by commas, trims any results for spaces and
631+
* newlines, and returns them as a Set of Strings. the method will return an empty
632+
* set if the specified property has not been set or is an empty string.
633+
*/
629634
private Set<String> getPropertyAsSet(String propertyName) {
630635
String propertyRaw = GlobalSettings.getProperty(propertyName);
631636
if (propertyRaw == null || propertyRaw.isEmpty()) {

0 commit comments

Comments
 (0)