https://issues.apache.org/bugzilla/show_bug.cgi?id=43656





--- Comment #12 from Nils Eckert <[EMAIL PROTECTED]>  2008-10-07 14:13:04 PST 
---
    public final static Object coerceToType(final Object obj, final Class type)
            throws IllegalArgumentException {
        if (type == null || Object.class.equals(type) ||
                (obj != null && type.isAssignableFrom(obj.getClass()))) {
            return obj;
        }

        ....

    }

behaves in the same way and returns the object if the Type matches.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to