Remove dependency to run in Android

Description

I'm using Hibernat-Validator 4.2.0 Final in an Android project and it fails with the following:

This happens because java.beans.Introspector is not part of Dalvik. Looking at the code it seems only the Introspector is used only in the following line:


which is a very simple String manipulation method.

Proposed soultion
Included a decapitalize method in the ReflectionHelper removing the dependency toward the Introspector.
I tested this solution with some simple valdation constraint and everything worked fine.

Environment

Android 2.x, 4.x

Status

Assignee

Gunnar Morling

Reporter

Andrea Vacondio

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

Yes, likely

Pull Request

None

backportDecision

None

backportReEvaluate

None

Time tracking

2m

Components

Fix versions

Affects versions

Priority

Trivial
Configure