Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 2
    Why do you feel that your observations (duplicate methods, deep inheritance hierarchies) violate SOLID principles? Can you be more specific? As a general rule, GUI API's do use inheritance extensively; I think it's fair to say that GUI's are the dominant use case for inheritance hierarchies. That said, I've always found Java API's to be more convoluted than they need to be. Commented Oct 9, 2014 at 16:27
  • @RobertHarvey hopefully my new edit helps clarify. Commented Oct 9, 2014 at 18:33
  • 1
    If isDoubleBuffered is your best example of a violation of SRP I'd say they did a good job. As for ISP, you comments make no sense to me. JButton is a class, not an interface. Of course it is littered with all the APIs of its parents. Same for OCP - it handles events by calling ActionListeners. Seems pretty open to me, but I must be missing something in your arguments. Please elaborate. Commented Oct 10, 2014 at 20:53