Skip to content

Commit 508d2c7

Browse files
committed
Fix Javadoc formatting issues for headings
Headings in method-level Javadoc must be h4 or higher in recent versions of Java.
1 parent 428539f commit 508d2c7

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

spring-core/src/main/java/org/springframework/util/AntPathMatcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ public Map<String, String> extractUriTemplateVariables(String pattern, String pa
529529
* the first pattern contains a file extension match (e.g., {@code *.html}).
530530
* In that case, the second pattern will be merged into the first. Otherwise,
531531
* an {@code IllegalArgumentException} will be thrown.
532-
* <h3>Examples</h3>
532+
* <h4>Examples</h4>
533533
* <table border="1">
534534
* <tr><th>Pattern 1</th><th>Pattern 2</th><th>Result</th></tr>
535535
* <tr><td>{@code null}</td><td>{@code null}</td><td>&nbsp;</td></tr>

spring-test/src/main/java/org/springframework/test/context/TestPropertySource.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@
112112
* {@code Environment}'s set of {@code PropertySources}. Each location
113113
* will be added to the enclosing {@code Environment} as its own property
114114
* source, in the order declared.
115-
* <h3>Supported File Formats</h3>
115+
* <h4>Supported File Formats</h4>
116116
* <p>Both traditional and XML-based properties file formats are supported
117117
* &mdash; for example, {@code "classpath:/com/example/test.properties"}
118118
* or {@code "file:/path/to/file.xml"}.
119-
* <h3>Path Resource Semantics</h3>
119+
* <h4>Path Resource Semantics</h4>
120120
* <p>Each path will be interpreted as a Spring
121121
* {@link org.springframework.core.io.Resource Resource}. A plain path
122122
* &mdash; for example, {@code "test.properties"} &mdash; will be treated as a
@@ -134,9 +134,9 @@
134134
* in paths (i.e., <code>${...}</code>) will be
135135
* {@linkplain org.springframework.core.env.Environment#resolveRequiredPlaceholders(String) resolved}
136136
* against the {@code Environment}.
137-
* <h3>Default Properties File Detection</h3>
137+
* <h4>Default Properties File Detection</h4>
138138
* <p>See the class-level Javadoc for a discussion on detection of defaults.
139-
* <h3>Precedence</h3>
139+
* <h4>Precedence</h4>
140140
* <p>Properties loaded from resource locations have lower precedence than
141141
* inlined {@link #properties}.
142142
* <p>This attribute may <strong>not</strong> be used in conjunction with
@@ -209,7 +209,7 @@
209209
* {@code ApplicationContext} is loaded for the test. All key-value pairs
210210
* will be added to the enclosing {@code Environment} as a single test
211211
* {@code PropertySource} with the highest precedence.
212-
* <h3>Supported Syntax</h3>
212+
* <h4>Supported Syntax</h4>
213213
* <p>The supported syntax for key-value pairs is the same as the
214214
* syntax defined for entries in a Java
215215
* {@linkplain java.util.Properties#load(java.io.Reader) properties file}:
@@ -218,7 +218,7 @@
218218
* <li>{@code "key:value"}</li>
219219
* <li>{@code "key value"}</li>
220220
* </ul>
221-
* <h3>Precedence</h3>
221+
* <h4>Precedence</h4>
222222
* <p>Properties declared via this attribute have higher precedence than
223223
* properties loaded from resource {@link #locations}.
224224
* <p>This attribute may be used in conjunction with {@link #value}

spring-test/src/main/java/org/springframework/test/context/jdbc/Sql.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
* {@link #value}, but it may be used instead of {@link #value}. Similarly,
9292
* this attribute may be used in conjunction with or instead of
9393
* {@link #statements}.
94-
* <h3>Path Resource Semantics</h3>
94+
* <h4>Path Resource Semantics</h4>
9595
* <p>Each path will be interpreted as a Spring
9696
* {@link org.springframework.core.io.Resource Resource}. A plain path
9797
* &mdash; for example, {@code "schema.sql"} &mdash; will be treated as a
@@ -103,7 +103,7 @@
103103
* {@link org.springframework.util.ResourceUtils#CLASSPATH_URL_PREFIX classpath:},
104104
* {@link org.springframework.util.ResourceUtils#FILE_URL_PREFIX file:},
105105
* {@code http:}, etc.) will be loaded using the specified resource protocol.
106-
* <h3>Default Script Detection</h3>
106+
* <h4>Default Script Detection</h4>
107107
* <p>If no SQL scripts or {@link #statements} are specified, an attempt will
108108
* be made to detect a <em>default</em> script depending on where this
109109
* annotation is declared. If a default cannot be detected, an
@@ -127,7 +127,7 @@
127127
* <em>Inlined SQL statements</em> to execute.
128128
* <p>This attribute may be used in conjunction with or instead of
129129
* {@link #scripts}.
130-
* <h3>Ordering</h3>
130+
* <h4>Ordering</h4>
131131
* <p>Statements declared via this attribute will be executed after
132132
* statements loaded from resource {@link #scripts}. If you wish to have
133133
* inlined statements executed before scripts, simply declare multiple

spring-tx/src/main/java/org/springframework/transaction/annotation/TransactionManagementConfigurer.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -51,7 +51,7 @@ public interface TransactionManagementConfigurer {
5151
* Return the default transaction manager bean to use for annotation-driven database
5252
* transaction management, i.e. when processing {@code @Transactional} methods.
5353
* <p>There are two basic approaches to implementing this method:
54-
* <h3>1. Implement the method and annotate it with {@code @Bean}</h3>
54+
* <h4>1. Implement the method and annotate it with {@code @Bean}</h4>
5555
* In this case, the implementing {@code @Configuration} class implements this method,
5656
* marks it with {@code @Bean}, and configures and returns the transaction manager
5757
* directly within the method body:
@@ -61,8 +61,8 @@ public interface TransactionManagementConfigurer {
6161
* public PlatformTransactionManager annotationDrivenTransactionManager() {
6262
* return new DataSourceTransactionManager(dataSource());
6363
* }</pre>
64-
* <h3>2. Implement the method without {@code @Bean} and delegate to another existing
65-
* {@code @Bean} method</h3>
64+
* <h4>2. Implement the method without {@code @Bean} and delegate to another existing
65+
* {@code @Bean} method</h4>
6666
* <pre class="code">
6767
* &#064;Bean
6868
* public PlatformTransactionManager txManager() {

0 commit comments

Comments
 (0)