Take my first example. For instance, if I run the program 10 times is it supposed to output two different results?
In the first example I have @NotNull only in Service.sayHello. If I put @NotNull in both Service.sayHello and ServiceImpl.sayHello i'm always getting the same output. I mean the validator recognises the name of the parameter, in this case "world" instead of "arg0".
After debugging, it seems the validator picks the "world" parameter name for Service.sayHello and "arg0" for ServiceImpl.sayHello, and then in the end uses only one. Sometimes is the first and other is de second.
In the second example I did a test with MyrParameterNameProvider and NameAnnotationParanamer to assure there was no problem with the paranamer library specially with debug symbols and byecode.
|