From 613bb636513741c7801a44f78275fec0ef7c1394 Mon Sep 17 00:00:00 2001 From: "Piotr P. Karwasz" Date: Wed, 8 Jul 2026 18:04:25 +0200 Subject: [PATCH 1/2] Add trailing newlines and use American spelling Add the missing EOL at end of file to the three .github config files, and convert British spellings (Honoured, flavour(s), synchronise, standardised, defence) to American in Javadoc, comments, and docs. --- .github/dependabot.yml | 2 +- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/maven.yml | 2 +- .../org/apache/commons/xml/DocumentBuilderHardener.java | 2 +- src/main/java/org/apache/commons/xml/Resolvers.java | 6 +++--- src/main/java/org/apache/commons/xml/SAXParserHardener.java | 2 +- src/main/java/org/apache/commons/xml/XmlFactories.java | 2 +- src/site/markdown/index.md | 4 ++-- src/test/java/org/apache/commons/xml/AttackTestSupport.java | 6 +++--- src/test/java/org/apache/commons/xml/BillionLaughsTest.java | 2 +- 10 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 7125dd48..cc8ef122 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -25,4 +25,4 @@ updates: schedule: interval: "weekly" cooldown: - default-days: 7 \ No newline at end of file + default-days: 7 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index fff08656..68247efa 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -32,4 +32,4 @@ jobs: permissions: actions: read contents: read - security-events: write \ No newline at end of file + security-events: write diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 1687801c..21f86f65 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -198,4 +198,4 @@ jobs: android-tests/build/outputs/androidTest-results/ android-tests/build/reports/androidTests/ if-no-files-found: ignore - retention-days: 14 \ No newline at end of file + retention-days: 14 diff --git a/src/main/java/org/apache/commons/xml/DocumentBuilderHardener.java b/src/main/java/org/apache/commons/xml/DocumentBuilderHardener.java index b0484a03..8ed96e65 100644 --- a/src/main/java/org/apache/commons/xml/DocumentBuilderHardener.java +++ b/src/main/java/org/apache/commons/xml/DocumentBuilderHardener.java @@ -91,7 +91,7 @@ static DocumentBuilderFactory harden(final DocumentBuilderFactory factory) { // ACCESS_EXTERNAL_* support is the dividing capability between JAXP 1.5 implementations and older ones. if (trySetAttribute(factory, XMLConstants.ACCESS_EXTERNAL_DTD, "") && trySetAttribute(factory, XMLConstants.ACCESS_EXTERNAL_SCHEMA, "")) { - // Honoured: the JAXP 1.5 properties block external fetches, so the bare factory is already hardened. + // Honored: the JAXP 1.5 properties block external fetches, so the bare factory is already hardened. return factory; } // Rejected: external Xerces ignores ACCESS_EXTERNAL_*; install a deny-all resolver on every DocumentBuilder. diff --git a/src/main/java/org/apache/commons/xml/Resolvers.java b/src/main/java/org/apache/commons/xml/Resolvers.java index 63556c40..db497e33 100644 --- a/src/main/java/org/apache/commons/xml/Resolvers.java +++ b/src/main/java/org/apache/commons/xml/Resolvers.java @@ -33,7 +33,7 @@ /** * Stateless resolver singletons that fix the outcome of every external lookup. * - *

Two flavours are exposed, each as a typed singleton field per resolver interface:

+ *

Two flavors are exposed, each as a typed singleton field per resolver interface:

*