This is an automated email from the ASF dual-hosted git repository. andy pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/jena.git
commit c349ea6892705df250f0d8220958915a33835364 Author: Andy Seaborne <[email protected]> AuthorDate: Mon Jul 14 18:36:34 2025 +0100 Improve port warning about HTTP/HTTP --- jena-iri3986/src/main/java/org/apache/jena/rfc3986/IRI3986.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jena-iri3986/src/main/java/org/apache/jena/rfc3986/IRI3986.java b/jena-iri3986/src/main/java/org/apache/jena/rfc3986/IRI3986.java index 9397f990a5..9e44077221 100644 --- a/jena-iri3986/src/main/java/org/apache/jena/rfc3986/IRI3986.java +++ b/jena-iri3986/src/main/java/org/apache/jena/rfc3986/IRI3986.java @@ -1634,13 +1634,13 @@ public class IRI3986 implements IRI { if ( port == 80 ) schemeReport(this, Issue.http_omit_well_known_port, scheme, "Default port 80 should be omitted"); else if ( port < 1024 && port != 80 ) - schemeReport(this, Issue.http_port_not_advised, scheme, "HTTP ports under 1024 should only be 80, not "+port); + schemeReport(this, Issue.http_port_not_advised, scheme, "An HTTP port under 1024 should only be 80, not "+port); break; case HTTPS : if ( port == 443 ) schemeReport(this, Issue.http_omit_well_known_port, scheme, "Default port 443 should be omitted"); else if ( port < 1024 && port != 443 ) - schemeReport(this, Issue.http_port_not_advised, scheme, "HTTPS ports under 1024 should only be 443, not "+port); + schemeReport(this, Issue.http_port_not_advised, scheme, "An HTTPS ports under 1024 should only be 443, not "+port); break; default : throw new IllegalStateException();
