[Webkit-unassigned] [Bug 205670] New: Declare some classes as final.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Dec 31 19:59:50 PST 2019
https://bugs.webkit.org/show_bug.cgi?id=205670
Bug ID: 205670
Summary: Declare some classes as final.
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mark.lam at apple.com
There are a few "Status" classes, all of whom have static computeFor() methods. All of these classes do not have derived classes, and are independent of each others in terms of inheritance relationships. By explicitly declaring them as final, we can make it clear that a call to any unqualified computeFor() methods must be from the self class, and that external calls to any given computeFor() method qualified with a class name is defined in that class (and is not inherited).
This detail may already be known to folks who are familiar with these classes. Declaring them as final helps surface this independence for readers of the code who is not already in the know.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200101/c3e603a6/attachment-0001.htm>
More information about the webkit-unassigned
mailing list