Skip to content

Commit

Permalink
allow javadocs to be built using Java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
bodewig committed Dec 29, 2022
1 parent 737789d commit 78f66d2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
25 changes: 24 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
<docencoding>${project.build.sourceEncoding}</docencoding>
<notimestamp>true</notimestamp>
<links>
<link>http://docs.oracle.com/javase/6/docs/api/</link>
<link>https://docs.oracle.com/javase/8/docs/api/</link>
</links>
<additionalparam>${javadoc.additionalparam}</additionalparam>
</configuration>
Expand Down Expand Up @@ -543,6 +543,29 @@
</plugins>
</build>
</profile>
<profile>
<id>java9+</id>
<activation>
<jdk>[9,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<additionalDependencies>
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>${jakarta.xml.bind.version}</version>
</dependency>
</additionalDependencies>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>java14+</id>
<activation>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
******************************************************************
Copyright (c) 2001-2007,2015 Jeff Martin, Tim Bacon
Copyright (c) 2001-2007,2015,2022 Jeff Martin, Tim Bacon
All rights reserved.
Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -68,8 +68,7 @@ public void testNode(Node aNode, NodeTest forTest) {
* if all the nodes that were expected were found.
* Note that this method also invokes {@link #resetCounter resetCounter}
* so that the instance can be reused.
* @exception true if expected num nodes == actual num nodes,
* false otherwise
* @throws NodeTestException if expected num nodes == actual num nodes
*/
public void noMoreNodes(NodeTest forTest) throws NodeTestException {
int testedNodes = actualNumNodes;
Expand Down

0 comments on commit 78f66d2

Please sign in to comment.