We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b74144 commit ab4e643Copy full SHA for ab4e643
1 file changed
csharp/extractor/Semmle.Extraction.CSharp.Standalone/Runtime.cs
@@ -22,7 +22,7 @@ internal partial class Runtime
22
23
public Runtime(IDotNet dotNet) => this.dotNet = dotNet;
24
25
- internal sealed class RuntimeVersion : IComparable<RuntimeVersion>
+ internal record RuntimeVersion : IComparable<RuntimeVersion>
26
{
27
private readonly string dir;
28
private readonly Version version;
@@ -71,11 +71,6 @@ public int CompareTo(RuntimeVersion? other)
71
return c;
72
}
73
74
- public override bool Equals(object? obj) =>
75
- obj is not null && obj is RuntimeVersion other && other.FullPath == FullPath;
76
-
77
- public override int GetHashCode() => FullPath.GetHashCode();
78
79
public override string ToString() => FullPath;
80
81
0 commit comments