This is an automated email from the ASF dual-hosted git repository.
jtulach pushed a commit to branch jtulach/BuildNetBeansWithNbJavac
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to
refs/heads/jtulach/BuildNetBeansWithNbJavac by this push:
new 8018019cf3 Replacing `datesUntil` with "for loop" using JDK8 available
`LocalDate` methods
8018019cf3 is described below
commit 8018019cf35825610c1e8ca9e59f96abe1aa3f04
Author: Jaroslav Tulach <[email protected]>
AuthorDate: Fri Mar 31 14:43:44 2023 +0200
Replacing `datesUntil` with "for loop" using JDK8 available `LocalDate`
methods
---
.../platformdefinition/J2SEPlatformDefaultJavadocImpl.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/java/java.j2seplatform/src/org/netbeans/modules/java/j2seplatform/platformdefinition/J2SEPlatformDefaultJavadocImpl.java
b/java/java.j2seplatform/src/org/netbeans/modules/java/j2seplatform/platformdefinition/J2SEPlatformDefaultJavadocImpl.java
index 4800d3635e..249432f338 100644
---
a/java/java.j2seplatform/src/org/netbeans/modules/java/j2seplatform/platformdefinition/J2SEPlatformDefaultJavadocImpl.java
+++
b/java/java.j2seplatform/src/org/netbeans/modules/java/j2seplatform/platformdefinition/J2SEPlatformDefaultJavadocImpl.java
@@ -67,10 +67,10 @@ public final class J2SEPlatformDefaultJavadocImpl
implements J2SEPlatformDefault
if (now.isAfter(jdk9)) { // time traveler -> only java 8 doc for you
int[] jdk = new int[] {9};
- jdk9.datesUntil(now, Period.ofMonths(6)).forEach((t) -> {
+ for (LocalDate d = jdk9; d.compareTo(now) < 0; d =
d.plus(Period.ofMonths(6))) {
OFFICIAL_JAVADOC.put(String.valueOf(jdk[0]),
"https://docs.oracle.com/javase/"+jdk[0]+"/docs/api/"); // NOI18N
jdk[0]++;
- });
+ }
OFFICIAL_JAVADOC.put(String.valueOf(jdk[0]),
"https://download.java.net/java/early_access/jdk"+jdk[0]+"/docs/api/"); //
NOI18N Early access
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists