You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ICSharpCode.Decompiler/CSharp/Syntax/IAnnotatable.cs
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@
18
18
19
19
usingSystem;
20
20
usingSystem.Collections.Generic;
21
+
usingSystem.Diagnostics.CodeAnalysis;
21
22
usingSystem.Linq;
22
23
usingSystem.Threading;
23
24
@@ -115,6 +116,8 @@ public AnnotationList(int initialCapacity) : base(initialCapacity)
115
116
{
116
117
}
117
118
119
+
[SuppressMessage("Reliability","CA2002:Do not lock on objects with weak identity",
120
+
Justification="AnnotationList is a private nested type — the surrounding Annotatable class deliberately locks on the AnnotationList instance to serialize annotation reads/writes; external code cannot obtain a reference to it.")]
0 commit comments