[JIRA] Created: (GLAZEDLISTS-566) BasicEventList should not be final

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[JIRA] Created: (GLAZEDLISTS-566) BasicEventList should not be final

JIRA jira-no-reply@java.net
BasicEventList should not be final
----------------------------------

                 Key: GLAZEDLISTS-566
                 URL: https://java.net/jira/browse/GLAZEDLISTS-566
             Project: glazedlists
          Issue Type: Improvement
          Components: core
    Affects Versions: 1.9.0, 1.8.0
            Reporter: axeld
            Priority: Minor


The 'final' keyword should be used sparingly. While it makes sense to advocate the use of TransformedList over extending BasicEventList in most cases, it's also sometimes just overkill, and leads to bloat where it is not necessary.

In my use case, I would like to have my model implement another interface. Since my model is just a BasicEventList, I now have to implement TransformedList just because of that.
Another use case is debugging. Using the DebugList is nice, but it's very limited depending on the issue you want to investigate, and when you need your own, you'll have to implement a lot of code just because BasicEvenList is final. DebugList itself is also a good showcase of why making BasicEventList final is not that a good idea.


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira