Apache Lucene open-source search software
make duplicate anchors a hard error
Michael McCandless95f0553bc00d
diff --git a/dev-tools/scripts/checkJavadocLinks.py b/dev-tools/scripts/checkJavadocLinks.pyindex 9a4dbf714ad..15b56ec2448 100644--- a/dev-tools/scripts/checkJavadocLinks.py+++ b/dev-tools/scripts/checkJavadocLinks.py@@ -65,7 +65,7 @@ class FindHyperlinks(HTMLParser):passelse:self.printFile()- print(' WARNING: anchor "%s" appears more than once' % name)+ raise RuntimeError('anchor "%s" appears more than once' % name)else:self.anchors.add(name)elif href is not None: