This is an automated email from the ASF dual-hosted git repository.
mbien pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new d25cb6df58 Add support for the 2nd jdk early release that happens 3
months after the 1st jdk early release (usually the 9th day of the month).
new 1f11c8c3f5 Merge pull request #6078 from pepness/javadoc-early
d25cb6df58 is described below
commit d25cb6df583c35a341db0244441edf55c0dbcd63
Author: José Contreras <[email protected]>
AuthorDate: Tue Jun 13 16:51:12 2023 -0600
Add support for the 2nd jdk early release that happens 3 months after
the 1st jdk early release (usually the 9th day of the month).
---
.../J2SEPlatformDefaultJavadocImpl.java | 17 +++++++++++++++--
1 file changed, 15 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 0cc007ec03..29049601eb 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,11 +67,24 @@ public final class J2SEPlatformDefaultJavadocImpl
implements J2SEPlatformDefault
if (now.isAfter(jdk9)) { // time traveler -> only java 8 doc for you
int jdk = 9;
- for (LocalDate t = jdk9; t.isBefore(now); t = t.plusMonths(6)) {
+ LocalDate jdkEarly = jdk9;
+ for (LocalDate t = jdk9 ; t.isBefore(now); t = t.plusMonths(6)) {
OFFICIAL_JAVADOC.put(String.valueOf(jdk),
"https://docs.oracle.com/en/java/javase/" + jdk + "/docs/api/"); // NOI18N
+ jdkEarly = t;
jdk++;
}
- OFFICIAL_JAVADOC.put(String.valueOf(jdk),
"https://download.java.net/java/early_access/jdk" + jdk + "/docs/api/"); //
NOI18N Early access
+
+ jdkEarly = jdkEarly.minusDays(12);
+
+ if (now.isAfter(jdkEarly)) {
+ OFFICIAL_JAVADOC.put(String.valueOf(jdk),
"https://download.java.net/java/early_access/jdk" + jdk + "/docs/api/"); //
NOI18N Early access
+ jdkEarly = jdkEarly.plusMonths(3);
+ jdk++;
+ }
+ // there is a 2nd jdk early release after 3 months
+ if (now.isAfter(jdkEarly)) {
+ OFFICIAL_JAVADOC.put(String.valueOf(jdk),
"https://download.java.net/java/early_access/jdk" + jdk + "/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