Github user netomi commented on the pull request:

    https://github.com/apache/commons-lang/pull/98#issuecomment-113740935
  
    It works (if you can call it like that) by casting it to something this it 
isn't, which results in a ClassCastException. As a ClassCastException is a 
RuntimeException everything appears to be fine, but it is completely wrong.
    The referenced util in guava makes sense, and if you like to include it in 
commons, just copy&paste it, but do not try to come up with a flawed version 
yourself.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to