We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 718653c + 14fd26b commit f3252dcCopy full SHA for f3252dc
1 file changed
Templates/Java/BaseJavaModel.template.tt
@@ -1082,7 +1082,7 @@ public {1} {2}{3}{4} {{";
1082
property.Name,
1083
propertyType,
1084
property.Name.SanitizePropertyName(property).ToLowerFirstChar(),
1085
- ReplaceInvalidCharacters(property.LongDescription));
+ GetSanitizedDescription(property));
1086
}
1087
return sb.ToString();
1088
@@ -1260,4 +1260,14 @@ public {1} {2}{3}{4} {{";
1260
1261
return null;
1262
1263
-#>
+
1264
+ /**
1265
+ * Get the description from the LongDescription or Description annotation and then return the sanitized string.
1266
+ */
1267
+ public string GetSanitizedDescription(OdcmProperty property)
1268
+ {
1269
+ var description = property.LongDescription ?? property.Description;
1270
1271
+ return ReplaceInvalidCharacters(description);
1272
+ }
1273
+#>
0 commit comments