Skip to content

Commit c6e649c

Browse files
committed
Add support for Java 20
1 parent 141f4e6 commit c6e649c

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
MIT License
22
===========
33

4-
Copyright 2021 Mountainminds GmbH & Co. KG
4+
Copyright 2021, 2022 Mountainminds GmbH & Co. KG
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
77

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ io.javaalmanac.javadoclink - Deep links for Javadoc
22
===================================================
33

44
Small Java library to create deep links into generated Javadoc for all Java
5-
versions from 1.1 to 18.
5+
versions from 1.1 to 20.
66

77
The library can create links for
88

src/main/java/io/javaalmanac/javadoclink/JavaDocLinkImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ final class JavaDocLinkImpl implements JavaDocLink {
8282
VERSIONS.put("17", VERSIONS.get("11"));
8383
VERSIONS.put("18", VERSIONS.get("11"));
8484
VERSIONS.put("19", VERSIONS.get("11"));
85+
VERSIONS.put("20", VERSIONS.get("11"));
8586
}
8687

8788
private final String base;

src/test/java/io/javaalmanac/javadoclink/JavaDocLinkTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2022 Mountainminds GmbH & Co. KG
2+
* Copyright (c) 2021, 2022 Mountainminds GmbH & Co. KG
33
*
44
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
55
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
@@ -123,6 +123,7 @@ private boolean hasNoElement(Document doc, String element, String attr, String v
123123
JDK_API_DOC.put("17", "https://docs.oracle.com/en/java/javase/17/docs/api/");
124124
JDK_API_DOC.put("18", "https://docs.oracle.com/en/java/javase/18/docs/api/");
125125
JDK_API_DOC.put("19", "https://download.java.net/java/early_access/jdk19/docs/api/");
126+
JDK_API_DOC.put("20", "https://download.java.net/java/early_access/jdk20/docs/api/");
126127
}
127128

128129
}

0 commit comments

Comments
 (0)