Skip to content

Commit 7602db1

Browse files
committed
Normalize Javadoc @param.
1 parent 8fc0beb commit 7602db1

23 files changed

Lines changed: 60 additions & 60 deletions

src/main/java/org/apache/commons/xml/secure/FallbackIgnoreURIResolver.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ final class FallbackIgnoreURIResolver implements URIResolver {
6161
* received cannot surface in another resolution.
6262
* </p>
6363
*
64-
* @param factory the factory to create the document builder with.
64+
* @param factory The factory to create the document builder with.
6565
* @return a new empty document.
6666
* @throws IllegalStateException Thrown if the factory cannot supply a {@link javax.xml.parsers.DocumentBuilder} satisfying its configuration.
6767
*/
@@ -89,8 +89,8 @@ private static Document newEmptyDocument(final DocumentBuilderFactory factory) {
8989
/**
9090
* Constructs a new resolver.
9191
*
92-
* @param delegate the resolver to delegate resolution to; may be {@code null}.
93-
* @param emptySource the empty-{@link Source} supplier for the ignore outcome, or {@code null} for the default empty DOM document.
92+
* @param delegate The resolver to delegate resolution to; may be {@code null}.
93+
* @param emptySource The empty-{@link Source} supplier for the ignore outcome, or {@code null} for the default empty DOM document.
9494
* @param overrideDefaultParser whether the opted-in rewrite should use the pluggable parser lookup instead of the platform's built-in parser, read at each resolution.
9595
*/
9696
FallbackIgnoreURIResolver(final URIResolver delegate, final Supplier<Source> emptySource, final BooleanSupplier overrideDefaultParser) {

src/main/java/org/apache/commons/xml/secure/SecureDocumentBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ final class SecureDocumentBuilder extends DocumentBuilder {
4646
/**
4747
* Constructs a new instance.
4848
*
49-
* @param delegate the delegate to wrap; must not be {@code null}.
49+
* @param delegate The delegate to wrap; must not be {@code null}.
5050
* @throws NullPointerException Thrown if {@code delegate} is {@code null}.
5151
*/
5252
SecureDocumentBuilder(final DocumentBuilder delegate) {

src/main/java/org/apache/commons/xml/secure/SecureDocumentBuilderFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private static final class Wrapper extends DocumentBuilderFactory {
6161
/**
6262
* Constructs a new instance.
6363
*
64-
* @param delegate the delegate to wrap; must not be {@code null}.
64+
* @param delegate The delegate to wrap; must not be {@code null}.
6565
* @throws NullPointerException Thrown if {@code delegate} is {@code null}.
6666
*/
6767
private Wrapper(final DocumentBuilderFactory delegate) {
@@ -186,7 +186,7 @@ public void setXIncludeAware(final boolean state) {
186186
/**
187187
* Enables namespace awareness on the given factory; the {@code NSInstance} counterpart of each factory method routes its result through here.
188188
*
189-
* @param factory the factory to configure; never {@code null}.
189+
* @param factory The factory to configure; never {@code null}.
190190
* @return The given factory, namespace-aware.
191191
*/
192192
private static DocumentBuilderFactory makeNSAware(final DocumentBuilderFactory factory) {

src/main/java/org/apache/commons/xml/secure/SecureException.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ final class SecureException extends IllegalStateException {
4747

4848
/**
4949
* Builds the standard exception for a rejected secure setting.
50-
* @param name the name of the feature, attribute or property that could not be set.
51-
* @param target the factory, parser, validator or reader that rejected the setting; its concrete class names the offending implementation.
52-
* @param cause the original checked or unchecked exception from the JAXP implementation.
50+
* @param name The name of the feature, attribute or property that could not be set.
51+
* @param target The factory, parser, validator or reader that rejected the setting; its concrete class names the offending implementation.
52+
* @param cause The original checked or unchecked exception from the JAXP implementation.
5353
*
5454
* @return the exception to throw.
5555
*/
@@ -60,11 +60,11 @@ static SecureException featureFailed(final String name, final Object target, fin
6060
/**
6161
* Builds the standard "forbidden" message shared by every resolver floor when {@link #throwOnUnresolved()} rejects an unresolved reference.
6262
*
63-
* @param type the resource kind, or {@code null} if not applicable.
64-
* @param namespace the namespace (or, for Woodstox, the entity name), or {@code null}.
65-
* @param publicId the public identifier, or {@code null} if none.
66-
* @param systemId the system identifier of the denied resource.
67-
* @param baseURI the base URI for relative resolution, or {@code null}.
63+
* @param type The resource kind, or {@code null} if not applicable.
64+
* @param namespace The namespace (or, for Woodstox, the entity name), or {@code null}.
65+
* @param publicId The public identifier, or {@code null} if none.
66+
* @param systemId The system identifier of the denied resource.
67+
* @param baseURI The base URI for relative resolution, or {@code null}.
6868
* @return the message naming the denied lookup and the enabling property.
6969
*/
7070
static String forbidden(final String type, final String namespace, final String publicId, final String systemId, final String baseURI) {
@@ -78,7 +78,7 @@ static String forbidden(final String type, final String namespace, final String
7878
* <p>Every supported implementation provides a reader as a routine capability, so the wrapped {@code ParserConfigurationException} or
7979
* {@code SAXException} signals a broken environment, not a per-parse condition — hence unchecked.</p>
8080
*
81-
* @param cause the original checked exception from the JAXP implementation.
81+
* @param cause The original checked exception from the JAXP implementation.
8282
* @return the exception to throw.
8383
*/
8484
static SecureException readerFailed(final Throwable cause) {

src/main/java/org/apache/commons/xml/secure/SecureSAXParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ final class SecureSAXParser extends SAXParser {
5050
/**
5151
* Constructs a new instance.
5252
*
53-
* @param delegate the delegate to wrap; must not be {@code null}.
53+
* @param delegate The delegate to wrap; must not be {@code null}.
5454
* @throws NullPointerException Thrown if {@code delegate} is {@code null}.
5555
*/
5656
SecureSAXParser(final SAXParser delegate) {

src/main/java/org/apache/commons/xml/secure/SecureSAXParserFactory.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ private static final class Wrapper extends SAXParserFactory {
9494
/**
9595
* Constructs a new instance.
9696
*
97-
* @param delegate the delegate to wrap; must not be {@code null}.
97+
* @param delegate The delegate to wrap; must not be {@code null}.
9898
* @throws NullPointerException Thrown if {@code delegate} is {@code null}.
9999
*/
100100
private Wrapper(final SAXParserFactory delegate) {
@@ -179,7 +179,7 @@ public void setXIncludeAware(final boolean state) {
179179
/**
180180
* Enables namespace awareness on the given factory; the {@code NSInstance} counterpart of each factory method routes its result through here.
181181
*
182-
* @param factory the factory to configure; never {@code null}.
182+
* @param factory The factory to configure; never {@code null}.
183183
* @return The given factory, namespace-aware.
184184
*/
185185
private static SAXParserFactory makeNSAware(final SAXParserFactory factory) {
@@ -336,7 +336,7 @@ static XMLReader newXMLReader(final boolean overrideDefaultParser) {
336336
* chain its own resolver onto the floor to allow-list resources, but cannot remove it.</li>
337337
* </ul>
338338
*
339-
* @param factory the factory to secure; never {@code null}.
339+
* @param factory The factory to secure; never {@code null}.
340340
* @return a secure factory.
341341
*/
342342
static SAXParserFactory secure(final SAXParserFactory factory) {
@@ -355,7 +355,7 @@ static SAXParserFactory secure(final SAXParserFactory factory) {
355355
* as-is. Used by the TrAX and schema wrappers to route every source they parse through the secure SAX path.
356356
* </p>
357357
*
358-
* @param source the source to secure; never {@code null}.
358+
* @param source The source to secure; never {@code null}.
359359
* @param overrideDefaultParser whether {@value #OVERRIDE_DEFAULT_PARSER} on the originating factory asks to override the JDK's default parser.
360360
* @return a secure source.
361361
* @throws IllegalStateException Thrown if the underlying implementation cannot provide a secure reader.

src/main/java/org/apache/commons/xml/secure/SecureSchema.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ final class SecureSchema extends Schema {
4141
/**
4242
* Constructs a new instance.
4343
*
44-
* @param delegate the delegate to wrap; must not be {@code null}.
44+
* @param delegate The delegate to wrap; must not be {@code null}.
4545
* @param overrideDefaultParser whether the produced Validators' source rewrites should use the pluggable parser lookup instead of the platform's built-in parser.
4646
* @throws NullPointerException Thrown if {@code delegate} is {@code null}.
4747
*/

src/main/java/org/apache/commons/xml/secure/SecureSchemaFactory.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ private static final class Wrapper extends SchemaFactory {
9696
/**
9797
* Constructs a new instance.
9898
*
99-
* @param delegate the delegate to wrap; must not be {@code null}.
99+
* @param delegate The delegate to wrap; must not be {@code null}.
100100
* @throws NullPointerException Thrown if {@code delegate} is {@code null}.
101101
*/
102102
private Wrapper(final SchemaFactory delegate) {
@@ -167,7 +167,7 @@ private boolean overrideDefaultParser() {
167167
/**
168168
* Secures every schema source through {@link SecureSAXParserFactory#secure(Source, boolean)}.
169169
*
170-
* @param schemas the schema sources to secure; must not be {@code null}.
170+
* @param schemas The schema sources to secure; must not be {@code null}.
171171
* @return a new array of secure sources.
172172
* @throws IllegalStateException Thrown if the underlying implementation cannot provide a secure reader.
173173
* @throws FactoryConfigurationError Thrown from a factory in case of a {@link java.util.ServiceConfigurationError service
@@ -272,7 +272,7 @@ public static SchemaFactory newInstance(final String schemaLanguage, final Strin
272272
* and instance documents is secured separately, through {@link SecureSAXParserFactory#secure(javax.xml.transform.Source, boolean)}; the factory carries
273273
* {@code FEATURE_SECURE_PROCESSING} for the one limit that reader cannot supply, the loader's content-model expansion.</p>
274274
*
275-
* @param factory the factory to secure; never {@code null}.
275+
* @param factory The factory to secure; never {@code null}.
276276
* @return a secure factory.
277277
*/
278278
static SchemaFactory secure(final SchemaFactory factory) {
@@ -282,9 +282,9 @@ static SchemaFactory secure(final SchemaFactory factory) {
282282
/**
283283
* Sets a feature on the delegate, failing closed: an implementation that cannot accept it yields no factory rather than an unsecured one.
284284
*
285-
* @param factory the factory to configure; never {@code null}.
286-
* @param feature the feature name.
287-
* @param value the value to set.
285+
* @param factory The factory to configure; never {@code null}.
286+
* @param feature The feature name.
287+
* @param value The value to set.
288288
* @throws SecureException Thrown if the implementation rejects the feature.
289289
*/
290290
private static void setFeature(final SchemaFactory factory, final String feature, final boolean value) {

src/main/java/org/apache/commons/xml/secure/SecureTemplates.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ final class SecureTemplates implements Templates {
6060
/**
6161
* Constructs a new instance.
6262
*
63-
* @param delegate the delegate to wrap; must not be {@code null}.
64-
* @param uriResolver the compile-time URIResolver snapshot to restore onto Transformers produced from the compiled Templates; may be {@code null}.
65-
* @param emptySource the empty-{@link Source} supplier for the produced Transformers.
63+
* @param delegate The delegate to wrap; must not be {@code null}.
64+
* @param uriResolver The compile-time URIResolver snapshot to restore onto Transformers produced from the compiled Templates; may be {@code null}.
65+
* @param emptySource The empty-{@link Source} supplier for the produced Transformers.
6666
* @param overrideDefaultParser whether the produced Transformers' source rewrites should use the pluggable parser lookup instead of the platform's built-in parser.
6767
* @throws NullPointerException Thrown if {@code delegate} is {@code null}.
6868
*/

src/main/java/org/apache/commons/xml/secure/SecureTemplatesHandler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ final class SecureTemplatesHandler implements TemplatesHandler {
5959
/**
6060
* Constructs a new instance.
6161
*
62-
* @param delegate the delegate to wrap; must not be {@code null}.
63-
* @param uriResolver the compile-time URIResolver snapshot to restore onto Transformers produced from the compiled Templates; may be {@code null}.
64-
* @param emptySource the empty-{@link Source} supplier for the produced Templates; may be {@code null} for the default empty DOM document.
62+
* @param delegate The delegate to wrap; must not be {@code null}.
63+
* @param uriResolver The compile-time URIResolver snapshot to restore onto Transformers produced from the compiled Templates; may be {@code null}.
64+
* @param emptySource The empty-{@link Source} supplier for the produced Templates; may be {@code null} for the default empty DOM document.
6565
* @param overrideDefaultParser whether the produced Templates' source rewrites should use the pluggable parser lookup instead of the platform's built-in parser.
6666
* @throws NullPointerException Thrown if {@code delegate} is {@code null}.
6767
*/

0 commit comments

Comments
 (0)