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
Use Java 11 methods where possible #6700
Conversation
bom/pom.xml
Outdated
<!-- TODO https://github.com/jenkinsci/stapler/pull/377 --> | ||
<stapler.version>1701.va_9519c27c7c2</stapler.version> |
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.
pom.xml
Outdated
<!-- TODO https://github.com/jenkinsci/remoting/pull/551 --> | ||
<remoting.version>3032.v630e4c777a_75</remoting.version> |
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.
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.
Just to pretest these PRs, not actually required, right?
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.
Correct, have reverted now that BOM tests passed
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.
Other than the POM bumps, all looks fine to merge right away, from a random sampling of diffs (did not attempt to read every line). Any reason to hold back on this?
pom.xml
Outdated
<!-- TODO https://github.com/jenkinsci/remoting/pull/551 --> | ||
<remoting.version>3032.v630e4c777a_75</remoting.version> |
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.
Just to pretest these PRs, not actually required, right?
Testing is still underway in jenkinsci/bom#1234 |
BOM test passed: https://ci.jenkins.io/job/Tools/job/bom/job/PR-1234/5/ |
I suggest at least reading the changes to |
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 looked through most of it, nice job :)
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.
Hot stuff, nice one 🔥
This PR is now ready for merge. We will merge it after approximately 24 hours if there is no negative feedback. Please see the merge process documentation for more information about the merge process. Thanks! |
@@ -58,6 +58,7 @@ java.time.Ser | |||
java.util.ArrayDeque | |||
java.util.ArrayList | |||
java.util.Arrays$ArrayList | |||
java.util.CollSer |
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.
(private top-level class in ImmutableCollections.java
)
@@ -103,6 +104,7 @@ java.util.GregorianCalendar | |||
java.util.HashMap | |||
java.util.HashSet | |||
java.util.Hashtable | |||
java.util.ImmutableCollections$List12 |
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.
Just saw #6700 (comment). For reference, I think this is so that tests like
p.addProperty(new ParametersDefinitionProperty(List.of( |
java.util.Collections$SingletonList |
if (url.endsWith("/")) url = url.substring(0, url.length() - 1); | ||
if (href.endsWith("/")) href = href.substring(0, href.length() - 1); | ||
|
||
return url.endsWith(href); | ||
} | ||
|
||
public <T> List<T> singletonList(T t) { | ||
return Collections.singletonList(t); | ||
return List.of(t); |
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.
Incompatible I think: jenkinsci/emailext-template-plugin#71 (comment)
Applies the OpenRewrite Migrate to Java 11 from Java 8 migration against this code base, along with any suggestions from IntelliJ's Java language migration aids and some manual touch-up.
Proposed changelog entries
N/A
Proposed upgrade guidelines
N/A
Submitter checklist
Proposed changelog entries
section only if there are breaking changes or other changes which may require extra steps from users during the upgrade@Restricted
or have@since TODO
Javadoc, as appropriate.Desired reviewers
@mention
Maintainer checklist
Before the changes are marked as
ready-for-merge
:Proposed changelog entries
are accurate, human-readable, and in the imperative moodupgrade-guide-needed
label is set and there is aProposed upgrade guidelines
section in the PR title. (example)lts-candidate
to be considered (see query).