-
Notifications
You must be signed in to change notification settings - Fork 13
Java 8 and kotlin #504
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
Java 8 and kotlin #504
Conversation
…of gradle. Updated the listObjectsForDirectory helper method to be lazy. Updated the start_job commands to fully pass the Iterable along instead of copying it to a List. Added a paginated bucket delete call that minimizes the number of API calls that are used to delete all the objects in a bucket. Fixed an issue in the payload generation of the bulk request body to work around an issue when trying to serialize the payload from an Iterable. Updated the version of Jackson.
…rsion information into a single file. Fixed a bug in the network code introduced by reving the http client version.
…to make the service loader work correctly as well.
…the same variable
…re excluding the ds3-interfaces and ds3-utils projects from the metadata build since those classes must be included as apart of the ds3-sdk project, and will already exist.
…s. Performing some minor code cleanup
| @@ -0,0 +1,28 @@ | |||
| package com.spectralogic.ds3client.utils.collections; | |||
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.
missing copyright
| @@ -0,0 +1,23 @@ | |||
| package com.spectralogic.ds3client.helpers | |||
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.
missing copyright
| return StreamWrapper.wrapStream(Files.walk(startDir).map { | ||
| Ds3Object(startDir.relativize(it).toString().replace("\\", "/"), Files.size(it)) | ||
| }.filter { | ||
| !Guard.isStringNullOrEmpty(it.name) // skip entries that are null or are the empty string |
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.
Since this is kotlin, why not just ! it.name.isNullOrEmpty()?
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.
I didn't realize kotlin had that. Updating...
|
|
||
| walk.forEach { | ||
| listBuilder.add(it) | ||
| println(it.name) |
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.
Log, as opposed to println()?
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.
Opps. That was a debug print. I'll remove
GraciesPadre
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.
Looks OK to me, aside from a couple nits. I'll leave it form someone else to merge, so we all get a chance to review.
This pull request updates the following:
gradle.propertiesfile