Skip to content

Commit

Permalink
Use JDK 17 as default javadoc root
Browse files Browse the repository at this point in the history
  • Loading branch information
julianhyde committed Nov 5, 2022
1 parent 43db14c commit 156a509
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ allprojects {
noTimestamp.value = true
showFromProtected()
// javadoc: error - The code being documented uses modules but the packages
// defined in https://docs.oracle.com/javase/9/docs/api/ are in the unnamed module
// defined in https://docs.oracle.com/en/java/javase/17/docs/api/ are in the unnamed module
source = "1.8"
docEncoding = "UTF-8"
charSet = "UTF-8"
Expand All @@ -454,7 +454,7 @@ allprojects {
"Copyright © 2012-$lastEditYear Apache Software Foundation. All Rights Reserved."
if (JavaVersion.current() >= JavaVersion.VERSION_1_9) {
addBooleanOption("html5", true)
links("https://docs.oracle.com/javase/9/docs/api/")
links("https://docs.oracle.com/en/java/javase/17/docs/api/")
} else {
links("https://docs.oracle.com/javase/8/docs/api/")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private CompressionFunctions() {

/**
* MySql Compression is based on zlib.
* <a href="https://docs.oracle.com/javase/8/docs/api/java/util/zip/Deflater.html">Deflater</a>
* <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/zip/Deflater.html">Deflater</a>
* is used to implement compression.
*/
public static @Nullable ByteString compress(@Nullable String data) {
Expand Down
2 changes: 1 addition & 1 deletion file/src/test/resources/wiki.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
* resulting database column. Processing steps are applied in the
* order described and replace and match patterns are based on Java
* Pattern syntax see:
* (http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html).
* (https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/regex/Pattern.html).
*
*/
"schemas": [ {
Expand Down
2 changes: 1 addition & 1 deletion site/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ avaticaApiRoot: /avatica/apidocs
# avaticaApiRoot: http://calcite.apache.org/avatica/apidocs

# The URL where the JDK's Javadocs are located
jdkApiRoot: https://docs.oracle.com/javase/8/docs/api/
jdkApiRoot: https://docs.oracle.com/en/java/javase/17/docs/api/java.base/

# The base path where the website is deployed
baseurl:
Expand Down
2 changes: 1 addition & 1 deletion site/_docs/file_adapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ within the selected element, match within the selected text, and
choose a data type for the resulting database column. Processing
steps are applied in the order described and replace and match
patterns are based on
[Java regular expressions](https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html).
[Java regular expressions](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/regex/Pattern.html).

### Further examples

Expand Down
2 changes: 1 addition & 1 deletion site/_docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ sqlline> !tables
{% endhighlight %}

(JDBC experts, note: sqlline's <code>!tables</code> command is just executing
<a href="https://docs.oracle.com/javase/7/docs/api/java/sql/DatabaseMetaData.html#getTables(java.lang.String, java.lang.String, java.lang.String, java.lang.String[])"><code>DatabaseMetaData.getTables()</code></a>
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/sql/DatabaseMetaData.html#getTables(java.lang.String, java.lang.String, java.lang.String, java.lang.String[])"><code>DatabaseMetaData.getTables()</code></a>
behind the scenes.
It has other commands to query JDBC metadata, such as <code>!columns</code> and <code>!describe</code>.)

Expand Down

0 comments on commit 156a509

Please sign in to comment.