Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ namespace Microsoft.Build.Collections
#if FEATURE_SECURITY_PERMISSIONS
[System.Security.Permissions.HostProtection(MayLeakOnAbort = true)]
#endif
internal class RetrievableEntryHashSet<T> : IRetrievableEntryHashSet<T>
internal class RetrievableEntryHashSet<T> : IRetrievableEntryHashSet<T> // CodeQL [SM02227] The dangerous method is called only in debug build. It's safe for release build.
where T : class, IKeyed
{
// store lower 31 bits of hash code
Expand Down
2 changes: 1 addition & 1 deletion src/Build/Errors/InvalidToolsetDefinitionException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Microsoft.Build.Exceptions
/// Exception subclass that ToolsetReaders should throw.
/// </summary>
[Serializable]
public class InvalidToolsetDefinitionException : BuildExceptionBase
public class InvalidToolsetDefinitionException : BuildExceptionBase // CodeQL [SM02227] The dangerous method is called only in debug build. It's safe for release build.
{
/// <summary>
/// The MSBuild error code corresponding with this exception.
Expand Down
2 changes: 1 addition & 1 deletion src/MSBuild/CommandLineSwitchException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace Microsoft.Build.CommandLine
/// This exception is used to flag (syntax) errors in command line switches passed to the application.
/// </summary>
[Serializable]
internal sealed class CommandLineSwitchException : Exception
internal sealed class CommandLineSwitchException : Exception // CodeQL [SM02227] The dangerous method is called only in debug build. It's safe for release build.
{
/// <summary>
/// This constructor initializes the exception message.
Expand Down
2 changes: 1 addition & 1 deletion src/MSBuild/InitializationException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace Microsoft.Build.CommandLine
/// Unlike the CommandLineSwitchException, this exception is NOT thrown for syntax errors in switches.
/// </remarks>
[Serializable]
internal sealed class InitializationException : Exception
internal sealed class InitializationException : Exception // CodeQL [SM02227] The dangerous method is called only in debug build. It's safe for release build.
{
/// <summary>
/// This constructor initializes the exception message.
Expand Down
Loading