Skip to content

Commit

Permalink
Update chapters/annotations.tex
Browse files Browse the repository at this point in the history
Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
  • Loading branch information
HansOlsson and henrikt-ma committed Nov 9, 2023
1 parent 58e2e85 commit 4d700cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chapters/annotations.tex
Expand Up @@ -2087,6 +2087,10 @@ \subsection{Protection of Classes}\label{protection-of-classes}
annotation(Line(origin = {49.5, 30}, points = {{-8.5, 0}, {8.5, -0}}));
annotation(Protection(access = Access.diagram));
end M;
model M2
MySecret mySecret;
annotation(Protection(access = Access.packageDuplicate));
end M2;
end P;
\end{lstlisting}
In order to not reveal the existence of the class \lstinline!P.MySecret!, a tool may choose to show the diagram of \lstinline!P.M! with both \lstinline!mySecret! and all connections to it removed.
Expand Down

0 comments on commit 4d700cf

Please sign in to comment.