Skip to content

Commit

Permalink
Fix abbreviation rules
Browse files Browse the repository at this point in the history
  • Loading branch information
timoninmaxim committed Jul 3, 2024
1 parent 50f73a1 commit 108769c
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ private void processFile(String file) throws IOException {

boolean jdk11 = "11".equals(System.getProperty("java.specification.version"));

String packagesFile = jdk11 ? "index.html" : "overview-summary.html";
String pkgGrpFile = jdk11 ? "index.html" : "overview-summary.html";

if (file.endsWith(packagesFile)) {
if (file.endsWith(pkgGrpFile)) {
// Try to find Other Packages section.
Jerry otherPackages =
doc.find("div.contentContainer table.overviewSummary caption span:contains('Other Packages')");
Expand All @@ -170,13 +170,13 @@ private void processFile(String file) throws IOException {
"<configuration> / <groups>");
}

Jerry packageGroups = doc.find("div.contentContainer table.overviewSummary caption span.tableTab");
Jerry pkgGroups = doc.find("div.contentContainer table.overviewSummary caption span.tableTab");

// This limit is set for JDK11. Each group is represented as a tab. Tabs are enumerated with a number 2^N
// where N is a sequential number for a tab. For 32 tabs (+ the "All Packages" tab) the number is overflowed
// and the tabulation becomes broken. See var data in "index.html".
if (jdk11 && packageGroups.size() > 30) {
throw new IllegalArgumentException("Too many package groups: " + packageGroups.size() + ". The limit"
if (pkgGroups.size() > 30) {
throw new IllegalArgumentException("Too many package groups: " + pkgGroups.size() + ". The limit"
+ " is 30 due to the javadoc limitations. Please reduce groups in parent/pom.xml"
+ " inside <plugin>(maven-javadoc-plugin) / <configuration> / <groups>");
}
Expand Down

0 comments on commit 108769c

Please sign in to comment.