|
Hi JC,
Overall I think your proposed ji05t001.cpp changes are a good idea, but I would say "assignments in an if" is the one I care about the most (but others seem to disagree on this). If you think you will get around to fixing "assignments in an if" soon, then I'm fine leaving out my suggestion for cleaning up the one multi-line case. Otherwise I'd like to see it fixed with this CR. Here's another issue you missed that I've fixed in the past: 118 NSK_DISPLAY1("%s JVMTI env: doRedirect: the JNI function table obtained successfully\n\ 119 \toverwriting the function GetVersion() ...\n", Maybe it was written before C supported concatenation of string literals. Also you need some consistency with the following: 175 NSK_DISPLAY1("\nagent %s initializer: obtaining the JVMTI env ...\n", 176 (indx == 0) ? "A" : "B"); 185 NSK_DISPLAY1("\nagent %s initializer: the JVMTI env obtained\n\tsetting event callbacks ...\n", 186 (indx == 0)? "A": "B"); I prefer the first version, indenting the arguments on the second line to lineup with the first argument on the first line. I only do the latter if I don't include any argument on the first line, which some times makes sense if the method name is long, and possibly also is invoked using an object with a long name (or is the result of a method call itself). thanks, Chris On 9/12/18 1:54 PM, JC Beyler wrote:
|
- Re: RFR (M) 8210665: Clean up JNI_ENV_ARG and f... Chris Plummer
- Re: RFR (M) 8210665: Clean up JNI_ENV_ARG ... Chris Plummer
- Re: RFR (M) 8210665: Clean up JNI_ENV_... Chris Plummer
- Re: RFR (M) 8210665: Clean up JNI_... Chris Plummer
- Re: RFR (M) 8210665: Clean up ... Chris Plummer
- Re: RFR (M) 8210665: Clean up JNI_ENV_ARG ... [email protected]
