-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Kotlinize #2680
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
Conversation
|
Wow, this is great, thanks so much! We will review it |
abelgardep
left a comment
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.
@hannesa2 Some changes requested
owncloudApp/src/main/java/com/owncloud/android/broadcastreceivers/ConnectivityActionReceiver.kt
Outdated
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/broadcastreceivers/ConnectivityActionReceiver.kt
Outdated
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/broadcastreceivers/ConnectivityActionReceiver.kt
Outdated
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/broadcastreceivers/ConnectivityActionReceiver.kt
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/ui/adapter/ExpandableUploadListAdapter.kt
Outdated
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/ui/adapter/ExpandableUploadListAdapter.kt
Outdated
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/ui/adapter/ExpandableUploadListAdapter.kt
Outdated
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/ui/adapter/ExpandableUploadListAdapter.kt
Outdated
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/ui/adapter/ExpandableUploadListAdapter.kt
Show resolved
Hide resolved
|
I applied most of the suggestions |
|
Thanks for the changes! But there are some pending ones that require some attention and research. As you know, we may get some nullability problems if we have kotlin code running with java code with not nullable parameters. Some files in this pr have a lot of usages and we should research a little bit which params are nullable and which not. That's why is not trivial to kotlinize files. For example, i have found an usage of uploadNewFile from UriUploader.java that sends a null to a parameter set as not nullable. |
|
Autogenerate kotlin code from java using AS is not always the best solution. If i kotlinize a file, i should research and check if everything is working as it was before since we have not a full test coverage (we are on our way with new arch). I found that problem but perhaps there are even more. |
|
@hannesa2 do you mind if we kotlinize these classes in the re-architecting process, or do you prefer to apply the suggestions of @abelgardep to move forward this PR? |
|
I've no strong opinion here, I don't depend on it. Tell me what to do. Even an unmerged "close" is an option |
|
Ok. Let's close ftm. In case we want to take advantage of this, will reopen. Thanks for your enagagement. |

During #2679 I kotlinize some files and fixed some lint warnings.
To keep #2679 I separated my work into two PR.