diff --git a/lib/processors/jsdoc/lib/ui5/plugin.cjs b/lib/processors/jsdoc/lib/ui5/plugin.cjs index ec159cc39..b2e4eb7d9 100644 --- a/lib/processors/jsdoc/lib/ui5/plugin.cjs +++ b/lib/processors/jsdoc/lib/ui5/plugin.cjs @@ -1157,17 +1157,17 @@ function collectVisibilityInfo(settings, doclet, className, n) { if (visibility === 'hidden' && (access === 'public' || access === 'protected' || access === 'restricted')) { // force access to private to avoid inconsistencies in libraries that ignore JSDoc errors - access = "private"; error(`${className}: Inconsistent visibility settings detected. Runtime metadata sets visibility to '${visibility}', while JSDoc defines it as '${access}' for the managed setting '${n}'. Forcing visibility to 'hidden'.`); + access = "private"; } if (visibility === 'public' && access === 'private') { // force access to 'restricted' to avoid inconsistencies in libraries that ignore JSDoc errors - access = "restricted"; ui5data(doclet).stakeholders ??= []; if ( !doclet.__ui5.stakeholders.includes(className) ) { doclet.__ui5.stakeholders.push(className); } error(`${className}: Inconsistent visibility settings detected. Runtime metadata sets visibility to '${visibility}', while JSDoc defines it as '${access}' for the managed setting '${n}'. Forcing visibility to 'restricted'.`); + access = "restricted"; } if (visibility == "public" && (access === "restricted" || access === "protected")) {