-
Notifications
You must be signed in to change notification settings - Fork 304
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
Convert SyncService into Kotlin #623
Conversation
This also closes #625 even without latest commit since I'm able to trigger sync with a command that issue's author mentioned |
I've recently removed this (77373a9) from project's
I'm not sure I understand how are these two issues connected? |
I've added few comments, there are more cases of I usually take the opportunity when converting Java code to Kotlin to go through it and cleanup some stuff, we shouldn't be just relying on automatic conversion 100%. Thanks! |
Yes, sure. The point of this PR is to make further changes more clear, so they can be reviewed properly and not get lost in a complete file rewrite. I fixed some of the most nasty examples of not-so-good code generation, but obviously also missed some places.
My guess on the reason why the sync failed with issue author's command is NullPointer somewhere, because of missing function parameters. Kotlin is much better in null handling so probably that auto-generated code makes additions checks somewhere. The point is that now the sync can be triggered from CLI, or least That Works On My Machine :) |
But it didn't work for you before? |
I haven't try it, but obviously it didn't work for #625 's author |
Have you ran tests? I'm getting few of them failing, such as:
BTW, if you can avoid merging back master to the working branch that would be great, to keep git log cleaner. Thanks! |
68815bc
to
61963c7
Compare
61963c7
to
f0c6bd8
Compare
Thank you for addressing this issues. I fixed the problem that caused test failures ( |
Great, thank you. I just had to update it for 784290f I did for v1.8.1. |
+Increase heap size for gradle
This PR does nothing with logic and functionality, just conversion.
Motivation is that I'd like to improve SyncService in the future and I thought it might be a good idea to convert this class into kotlin first to make things fancier :)
Also, I had to increase Heap size for gradle, because it started to fail with OutOfMemory error.