Re: [lang][wish] Add findAnnotation and findMethodsWithAnnotation to MethodUtils

2017-03-26 Thread Yasser Zamani
Hi Pascal, Nice to hear this. I started at https://github.com/apache/commons-lang/pull/261 :) Regards, Yasser. On 3/26/2017 12:02 PM, Pascal Schumacher wrote: > Hi Yasser, > > looks like a nice enhancement to me. > > Cheers, > Pascal > > Am 24.03.2017 um 21:

[lang][wish] Add findAnnotation and findMethodsWithAnnotation to MethodUtils

2017-03-24 Thread Yasser Zamani
In order to fix WW-4744 , mainly, I am going to add two functionalities to MethodUtils: findAnnotation and findMethodsWithAnnotation. findAnnotation will be an extension for Method.getAnnotation that also searches interfaces and super classes

Re: [lang] Question with the StringEscapeUtils.(un)escapeEcmaScript

2017-03-11 Thread Yasser Zamani
On 3/8/2017 12:21 PM, Benedikt Ritter wrote: > Hello Yasser, > > Sorry for the late reply! I have been on vacation and needed some time to go > through all the mails that have piled up :-) Hello Benedikt , thank you very much for your answer > > StringEscapeUtils contains general String

Re: [lang] Question with the StringEscapeUtils.(un)escapeEcmaScript

2017-03-11 Thread Yasser Zamani
On 3/8/2017 12:21 PM, Benedikt Ritter wrote: > Hello Yasser, > > Sorry for the late reply! I have been on vacation and needed some time to go > through all the mails that have piled up :-) Hello Benedikt , thank you very much for your answer > > StringEscapeUtils contains general String

[lang] Question with the StringEscapeUtils.(un)escapeEcmaScript

2017-02-27 Thread Yasser Zamani
Hi there, I just wonder why `StringEscapeUtils.escapeEcmaScript` also includes `JavaUnicodeEscaper`? is it it's business really? the problem is when we use it to prevent script injection by user, it also replaces user input's unicodes with "\u"s which is not deducted with `escapeEcmaScript'

[lang] Question with the StringEscapeUtils.(un)escapeEcmaScript

2017-02-25 Thread Yasser Zamani
Hi there, I just wonder why `StringEscapeUtils.escapeEcmaScript` also includes `JavaUnicodeEscaper`? is it it's business really? the problem is when we use it to prevent script injection by user, it also replaces user input's unicodes with "\u"s which is not deducted with `escapeEcmaScript'