Android-Validator icon indicating copy to clipboard operation
Android-Validator copied to clipboard

Static Error Message in RangeValidator

Open ClemMahe opened this issue 9 years ago • 0 comments

Hi,

In the class "RangeValidator", there is a static class variable called "mErrorMessage". It shouldn't be static as if you have multiple "RangeValidator", it will only keep the last value.

In my case i had 3 RangeValidator and the same message was displayed three times. Removing "static" modifier fix the issue.

Actually, i'm also wondering why "getMessage" is overrided in "RangeValidator" while it is not in others validators. :)

Regards, Clément.

ClemMahe avatar Apr 02 '15 10:04 ClemMahe