[PATCH] Add const to input parameter for JNU_IsInstanceOfByName
Alan Bateman
Alan.Bateman at oracle.com
Fri Jul 19 11:02:45 UTC 2019
On 16/07/2019 00:10, Andrew Luo wrote:
> Hi Everyone,
>
> I'm making some const-correctness fixes to some downstream libraries that use JNU_* functions, and noticed that JNU_IsInstanceOfByName takes in the class name by char* instead of const char* when it does not need to modify the string. It would be useful to change this so that we don't have to (unnecessarily) const-cast every time and can safely pass string literals to this function. Patch is inline below - any comments/feedback welcome.
This looks okay to me.
-Alan.
More information about the core-libs-dev
mailing list