Skip to content

Commit

Permalink
WAF remove volatile from isDisposed fields as this is not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
jbe2277 committed Sep 24, 2023
1 parent 7ba17f4 commit ff7ba67
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class ObservableListViewCore<T> : ObservableListViewBase<T>, IDisposable
private readonly bool noCollectionChangedHandler;
private Predicate<T>? filter;
private Func<IEnumerable<T>, IOrderedEnumerable<T>>? sort;
private volatile int isDisposed;
private int isDisposed;

/// <summary>Initializes a new instance of the ObservableListView class that represents a view of the specified list.</summary>
/// <param name="originalList">The original list.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class SynchronizingCollectionCore<T, TOriginal> : ReadOnlyObservableList<
private readonly IEqualityComparer<T> itemComparer;
private readonly IEqualityComparer<TOriginal> originalItemComparer;
private readonly bool noCollectionChangedHandler;
private volatile int isDisposed;
private int isDisposed;

/// <summary>Initializes a new instance of the <see cref="SynchronizingCollectionCore{T, TOriginal}"/> class.</summary>
/// <param name="originalCollection">The original collection.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class SettingsServiceCore : ISettingsService, IDisposable

private readonly ConcurrentDictionary<Type, Lazy<object>> settings;
private string fileName;
private volatile int isDisposed;
private int isDisposed;

/// <summary>Initializes a new instance of the SettingsService.</summary>
public SettingsServiceCore()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public sealed class UnitTestSynchronizationContext : SynchronizationContext, IDi
{
private readonly SynchronizationContext? previousContext;
private readonly BlockingCollection<(SendOrPostCallback callback, object? state)> messageQueue;
private volatile int isDisposed;
private int isDisposed;

private UnitTestSynchronizationContext()
{
Expand Down

0 comments on commit ff7ba67

Please sign in to comment.