-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Make JarURLConnection return entry's last modified time from getLastModified(); #9893
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
…odified(); Refactor buildJarFileUrl(); Fixes spring-projects#9867
wilkinsona
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.
Thanks very much for opening your first Spring Boot pull request. I've left a couple of comments. Would you mind taking a look?
| spec = spec.substring(0, spec.length() - SEPARATOR.length()); | ||
| } | ||
| if (spec.indexOf(SEPARATOR) == -1) { | ||
| if (!spec.contains(SEPARATOR)) { |
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.
Could you please revert this part of the change as it's unrelated to the last modified time
| return defaultTime; | ||
| } | ||
| try { | ||
| if (this.jarEntryName.isEmpty()) { |
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 could be moved outside the try and handled in the if above:
if (this.jarFile == null || this.jarEntryName.isEmpty())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.
Ok)
|
Looks good now. Thank you, @yeaxi! |
* gh-9893: Polish "Make JarURLConnection return entry's last modified time" Make JarURLConnection return entry's last modified time
|
Thanks again for the PR. This has been merged into 1.5.x and master. |
Fixes #9867
Refactor buildJarFileUrl();