From c055f76936a0c3de2213c4af6817202f73d7e976 Mon Sep 17 00:00:00 2001 From: Ebere Abanonu Date: Fri, 11 Feb 2022 14:34:05 +0100 Subject: [PATCH] Docs: Fix unresolved base documentaion WARNINGS in `Akka.DistributedData.GCounter.cs` (#5625) * Remove 'inheritdoc` from overriden members that can not be resolved by DocFx * Remove 'inheritdoc` from overriden members that can not be resolved by DocFx --- src/contrib/cluster/Akka.DistributedData/GCounter.cs | 8 ++++---- src/contrib/cluster/Akka.DistributedData/GSet.cs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/contrib/cluster/Akka.DistributedData/GCounter.cs b/src/contrib/cluster/Akka.DistributedData/GCounter.cs index 3bc16df1ea9..e0840a42765 100644 --- a/src/contrib/cluster/Akka.DistributedData/GCounter.cs +++ b/src/contrib/cluster/Akka.DistributedData/GCounter.cs @@ -183,10 +183,10 @@ public GCounter Prune(UniqueAddress removedNode, UniqueAddress collapseInto) /// TBD public GCounter PruningCleanup(UniqueAddress removedNode) => new GCounter(State.Remove(removedNode)); - /// + public override int GetHashCode() => State.GetHashCode(); - /// + public bool Equals(GCounter other) { if (ReferenceEquals(other, null)) return false; @@ -195,10 +195,10 @@ public bool Equals(GCounter other) return State.SequenceEqual(other.State); } - /// + public override bool Equals(object obj) => obj is GCounter counter && Equals(counter); - /// + public override string ToString() => $"GCounter({Value})"; /// diff --git a/src/contrib/cluster/Akka.DistributedData/GSet.cs b/src/contrib/cluster/Akka.DistributedData/GSet.cs index 1c4086831e0..e36b4310206 100644 --- a/src/contrib/cluster/Akka.DistributedData/GSet.cs +++ b/src/contrib/cluster/Akka.DistributedData/GSet.cs @@ -158,13 +158,13 @@ public bool Equals(GSet other) return Elements.SetEquals(other.Elements); } - /// + public IEnumerator GetEnumerator() => Elements.GetEnumerator(); - /// + public override bool Equals(object obj) => obj is GSet && Equals((GSet)obj); - /// + public override int GetHashCode() { unchecked @@ -186,7 +186,7 @@ public override int GetHashCode() IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); - /// + public override string ToString() { var sb = new StringBuilder("GSet(");