On 4/9/2015 3:50 AM, Varun Thacker wrote:
> I think it could be a good idea to add it to the forbidden-apis check.
> I'm unsure if we can do that though, since its just one method.

We can forbid specific versions of an overloaded method.  In the String
class, toLowerCase() and toUpperCase() are forbidden, but the signatures
toLowerCase(Locale) and toUpperCase(Locale) are allowed.

One thing I do not know for sure is whether forbidden-apis allows a
forbidden signature that includes a variable number of arguments.  I
looked at some of the included signatures and couldn't tell.

Thanks,
Shawn


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to