Issue Details (XML | Word | Printable)

Key: FEST-37
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Alex Ruiz
Reporter: Ondrej Medek
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
FEST

Are classes in org.fest.swing.core.matcher.* final?

Created: 05/Mar/09 02:10 AM   Updated: 28/Apr/09 07:19 PM   Resolved: 28/Apr/09 07:19 PM
Return to search
Component/s: Swing
Affects Version/s: FEST-Swing 1.1
Fix Version/s: FEST-Swing 1.2a1

Time Tracking:
Not Specified


 Description  « Hide

Classes in org.fest.swing.core.matcher.* should be marked as final (if they are not assumed to be extendable), or their properties should be protected, not private (so they can be extended).



Alex Ruiz made changes - 05/Mar/09 12:15 PM
Field Original Value New Value
Assignee Alex Ruiz [ alexruiz ]
Affects Version/s Tirane [ 15051 ]
Fix Version/s Cairo [ 15055 ]
Issue Type Bug [ 1 ] Improvement [ 4 ]
Alex Ruiz made changes - 28/Apr/09 12:07 PM
Status Open [ 1 ] In Progress [ 3 ]
Alex Ruiz added a comment - 28/Apr/09 07:19 PM

My original intention was to allow extension of the matchers. After giving it a second thought, I decided to mark them as final. The reason is the lack of static-typing checks for their constructors. They take Objects as arguments, and in many cases it should be Strings (e.g. name, title.) The reason for using Objects is to allow the use of ANY. If subclasses send the wrong argument, the matching can fail at runtime, instead of having the compiler to check for these errors. The type checking is perform in the static factory methods though.


Alex Ruiz made changes - 28/Apr/09 07:19 PM
Resolution Fixed [ 1 ]
Status In Progress [ 3 ] Resolved [ 5 ]