C#


CSHARP.CLASS.METH.NF : Method Should be final (C#)

Summary

A method should be final, since it is not private, not static, and not overridden in any subclass.

Properties

Class Name Method Should be final (C#)
Significance reliability
Mnemonic CSHARP.CLASS.METH.NF
Categories
CWE CWE:493 Critical Public Variable Without Final Modifier
Availability Available for C# only.
Enabling Checks for this warning class are disabled by default. To enable them, add the following WARNING_FILTER rule to the project configuration file.
WARNING_FILTER += allow class="Method Should be final (C#)"

Relevant Configuration File Parameters

The following configuration file parameters affect checks for this warning class.