From 108769c2a4cc9133678f2b54300c1b4baa442be9 Mon Sep 17 00:00:00 2001 From: Maksim Timonin Date: Wed, 3 Jul 2024 09:57:42 +0300 Subject: [PATCH] Fix abbreviation rules --- .../tools/ant/beautifier/GridJavadocAntTask.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/tools/src/main/java/org/apache/ignite/tools/ant/beautifier/GridJavadocAntTask.java b/modules/tools/src/main/java/org/apache/ignite/tools/ant/beautifier/GridJavadocAntTask.java index 59664ab61df029..0bd1796663a90f 100644 --- a/modules/tools/src/main/java/org/apache/ignite/tools/ant/beautifier/GridJavadocAntTask.java +++ b/modules/tools/src/main/java/org/apache/ignite/tools/ant/beautifier/GridJavadocAntTask.java @@ -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')"); @@ -170,13 +170,13 @@ private void processFile(String file) throws IOException { " / "); } - 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 (maven-javadoc-plugin) / / "); }