Skip to content

Commit 78f66d2

Browse files
committed
allow javadocs to be built using Java 17
1 parent 737789d commit 78f66d2

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

pom.xml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@
298298
<docencoding>${project.build.sourceEncoding}</docencoding>
299299
<notimestamp>true</notimestamp>
300300
<links>
301-
<link>http://docs.oracle.com/javase/6/docs/api/</link>
301+
<link>https://docs.oracle.com/javase/8/docs/api/</link>
302302
</links>
303303
<additionalparam>${javadoc.additionalparam}</additionalparam>
304304
</configuration>
@@ -543,6 +543,29 @@
543543
</plugins>
544544
</build>
545545
</profile>
546+
<profile>
547+
<id>java9+</id>
548+
<activation>
549+
<jdk>[9,)</jdk>
550+
</activation>
551+
<build>
552+
<plugins>
553+
<plugin>
554+
<groupId>org.apache.maven.plugins</groupId>
555+
<artifactId>maven-javadoc-plugin</artifactId>
556+
<configuration>
557+
<additionalDependencies>
558+
<dependency>
559+
<groupId>jakarta.xml.bind</groupId>
560+
<artifactId>jakarta.xml.bind-api</artifactId>
561+
<version>${jakarta.xml.bind.version}</version>
562+
</dependency>
563+
</additionalDependencies>
564+
</configuration>
565+
</plugin>
566+
</plugins>
567+
</build>
568+
</profile>
546569
<profile>
547570
<id>java14+</id>
548571
<activation>

xmlunit-legacy/src/main/java/org/custommonkey/xmlunit/examples/CountingNodeTester.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
******************************************************************
3-
Copyright (c) 2001-2007,2015 Jeff Martin, Tim Bacon
3+
Copyright (c) 2001-2007,2015,2022 Jeff Martin, Tim Bacon
44
All rights reserved.
55
66
Redistribution and use in source and binary forms, with or without
@@ -68,8 +68,7 @@ public void testNode(Node aNode, NodeTest forTest) {
6868
* if all the nodes that were expected were found.
6969
* Note that this method also invokes {@link #resetCounter resetCounter}
7070
* so that the instance can be reused.
71-
* @exception true if expected num nodes == actual num nodes,
72-
* false otherwise
71+
* @throws NodeTestException if expected num nodes == actual num nodes
7372
*/
7473
public void noMoreNodes(NodeTest forTest) throws NodeTestException {
7574
int testedNodes = actualNumNodes;

0 commit comments

Comments
 (0)