Why this matters
Empty finalizers introduce unnecessary performance overhead. If cleanup is needed, implement proper resource disposal instead.
Check that finalizers are not left empty. If cleanup is needed, ensure proper resource disposal is implemented instead.
Empty finalizers introduce unnecessary performance overhead. If cleanup is needed, implement proper resource disposal instead.
Side-by-side examples engineers can pattern-match during review.
public class Foo
{
~Foo() // Noncompliant
{
}
}// (no example provided)public class Foo
{
~Foo() // Noncompliant
{
}
}From the same buckets as this rule.