Skip to content

Commit

Permalink
Remove 'inheritdoc` from overriden members that can not be resolved b…
Browse files Browse the repository at this point in the history
…y DocFx (#5632)
  • Loading branch information
eaba authored Feb 11, 2022
1 parent 8126b55 commit 7bedcca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/contrib/cluster/Akka.DistributedData/PNCounter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public PNCounter Prune(Cluster.UniqueAddress removedNode, Cluster.UniqueAddress
public PNCounter PruningCleanup(Cluster.UniqueAddress removedNode) =>
new PNCounter(Increments.PruningCleanup(removedNode), Decrements.PruningCleanup(removedNode));

/// <inheritdoc/>

public bool Equals(PNCounter other)
{
if (ReferenceEquals(other, null)) return false;
Expand All @@ -109,13 +109,13 @@ public bool Equals(PNCounter other)
return other.Increments.Equals(Increments) && other.Decrements.Equals(Decrements);
}

/// <inheritdoc/>

public override string ToString() => $"PNCounter({Value})";

/// <inheritdoc/>

public override bool Equals(object obj) => obj is PNCounter && Equals((PNCounter)obj);

/// <inheritdoc/>

public override int GetHashCode() => Increments.GetHashCode() ^ Decrements.GetHashCode();

public IReplicatedData Merge(IReplicatedData other) => Merge((PNCounter)other);
Expand Down
10 changes: 5 additions & 5 deletions src/contrib/cluster/Akka.DistributedData/PNCounterDictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public PNCounterDictionary<TKey> Prune(UniqueAddress removedNode, UniqueAddress
public PNCounterDictionary<TKey> PruningCleanup(UniqueAddress removedNode) =>
new PNCounterDictionary<TKey>(Underlying.PruningCleanup(removedNode));

/// <inheritdoc/>

public bool Equals(PNCounterDictionary<TKey> other)
{
if (ReferenceEquals(other, null)) return false;
Expand All @@ -188,19 +188,19 @@ public bool Equals(PNCounterDictionary<TKey> other)
return Equals(Underlying, other.Underlying);
}

/// <inheritdoc/>

public IEnumerator<KeyValuePair<TKey, BigInteger>> GetEnumerator() =>
Underlying.Select(x => new KeyValuePair<TKey, BigInteger>(x.Key, x.Value.Value)).GetEnumerator();
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();

/// <inheritdoc/>

public override bool Equals(object obj) =>
obj is PNCounterDictionary<TKey> pairs && Equals(pairs);

/// <inheritdoc/>

public override int GetHashCode() => Underlying.GetHashCode();

/// <inheritdoc/>

public override string ToString()
{
var sb = new StringBuilder("PNCounterDictionary(");
Expand Down

0 comments on commit 7bedcca

Please sign in to comment.