New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed JASSIST-267 (new ) #210
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much better than $142 nice one!
I would just revisit that funky for loop and make it more readable. Reduce the "What the?!?!" factor =)
Otherwise it seems you've hit the nail on the head, well done!
Note: I did not actually test the proposal.
int i = -1; | ||
if (methodTypes.length == targetMethodTypes.length) { | ||
for (Class<?> clz : methodTypes) { | ||
i++; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is weird =/ why not just use a normal for statement with the i
counter then?
Clean code according to comments.
Code cleaned. Please check the new change. |
Nice! Looks good! Will see if I can get a moment to test. |
@nickl- Do you have time checking it? |
@NingZhang-Ericsson oh crap, I forgot about this but also haven't had a moment free to look at anything else. You do know that I am not here at javassist in any official capacity, just to be clear. I don't mind helping out where I can but have commitments at other projects that takes priority. Besides @chibash is the one that needs to accept or reject this I can only say that I agree with you. That said I did say I will test it for you so I will make some time to do that. Thank you for the reminder. |
Tested and works as advertised. Well done @NingZhang-Ericsson, nice one =) RTBC |
Hi, |
#210 Hope I have explained the difference. :-) |
Thank you for fixing JASSIST-267. |
Nice!
|
To fix JASSIST-267. Please kindly help review.
This is a replacement of #142 due to my organization suggest me use a new Github account.