Skip to content

Commit 042b78f

Browse files
committed
Fix Javadoc @code tags
Signed-off-by: Johnny Lim <[email protected]>
1 parent d4030a8 commit 042b78f

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

spring-core/src/main/java/org/springframework/core/SpringProperties.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public static void setFlag(String key) {
123123
* Retrieve the flag for the given property key.
124124
* @param key the property key
125125
* @return {@code true} if the property is set to the string "true"
126-
* (ignoring case), {@code} false otherwise
126+
* (ignoring case), {@code false} otherwise
127127
*/
128128
public static boolean getFlag(String key) {
129129
return Boolean.parseBoolean(getProperty(key));

spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcOperations.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public interface JdbcOperations {
163163
* @param sql the SQL query to execute
164164
* @param rowMapper a callback that will map one object per row
165165
* @return the single mapped object (may be {@code null} if the given
166-
* {@link RowMapper} returned {@code} null)
166+
* {@link RowMapper} returned {@code null})
167167
* @throws org.springframework.dao.IncorrectResultSizeDataAccessException
168168
* if the query does not return exactly one row
169169
* @throws DataAccessException if there is any problem executing the query
@@ -598,7 +598,7 @@ <T> Stream<T> queryForStream(String sql, RowMapper<T> rowMapper, @Nullable Objec
598598
* (constants from {@code java.sql.Types})
599599
* @param rowMapper a callback that will map one object per row
600600
* @return the single mapped object (may be {@code null} if the given
601-
* {@link RowMapper} returned {@code} null)
601+
* {@link RowMapper} returned {@code null})
602602
* @throws org.springframework.dao.IncorrectResultSizeDataAccessException
603603
* if the query does not return exactly one row
604604
* @throws DataAccessException if the query fails
@@ -617,7 +617,7 @@ <T> Stream<T> queryForStream(String sql, RowMapper<T> rowMapper, @Nullable Objec
617617
* only the argument value but also the SQL type and optionally the scale
618618
* @param rowMapper a callback that will map one object per row
619619
* @return the single mapped object (may be {@code null} if the given
620-
* {@link RowMapper} returned {@code} null)
620+
* {@link RowMapper} returned {@code null})
621621
* @throws org.springframework.dao.IncorrectResultSizeDataAccessException
622622
* if the query does not return exactly one row
623623
* @throws DataAccessException if the query fails
@@ -637,7 +637,7 @@ <T> Stream<T> queryForStream(String sql, RowMapper<T> rowMapper, @Nullable Objec
637637
* may also contain {@link SqlParameterValue} objects which indicate not
638638
* only the argument value but also the SQL type and optionally the scale
639639
* @return the single mapped object (may be {@code null} if the given
640-
* {@link RowMapper} returned {@code} null)
640+
* {@link RowMapper} returned {@code null})
641641
* @throws org.springframework.dao.IncorrectResultSizeDataAccessException
642642
* if the query does not return exactly one row
643643
* @throws DataAccessException if the query fails

spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/NamedParameterJdbcOperations.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ <T> Stream<T> queryForStream(String sql, Map<String, ?> paramMap, RowMapper<T> r
267267
* @param paramSource container of arguments to bind to the query
268268
* @param rowMapper object that will map one object per row
269269
* @return the single mapped object (may be {@code null} if the given
270-
* {@link RowMapper} returned {@code} null)
270+
* {@link RowMapper} returned {@code null})
271271
* @throws org.springframework.dao.IncorrectResultSizeDataAccessException
272272
* if the query does not return exactly one row
273273
* @throws DataAccessException if the query fails
@@ -284,7 +284,7 @@ <T> Stream<T> queryForStream(String sql, Map<String, ?> paramMap, RowMapper<T> r
284284
* (leaving it to the PreparedStatement to guess the corresponding SQL type)
285285
* @param rowMapper object that will map one object per row
286286
* @return the single mapped object (may be {@code null} if the given
287-
* {@link RowMapper} returned {@code} null)
287+
* {@link RowMapper} returned {@code null})
288288
* @throws org.springframework.dao.IncorrectResultSizeDataAccessException
289289
* if the query does not return exactly one row
290290
* @throws DataAccessException if the query fails

spring-messaging/src/main/java/org/springframework/messaging/simp/broker/BrokerAvailabilityEvent.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ public class BrokerAvailabilityEvent extends ApplicationEvent {
3333
/**
3434
* Creates a new {@code BrokerAvailabilityEvent}.
3535
*
36-
* @param brokerAvailable {@code true} if the broker is available, {@code}
37-
* false otherwise
36+
* @param brokerAvailable {@code true} if the broker is available, {@code
37+
* false} otherwise
3838
* @param source the component that is acting as the broker, or as a relay
3939
* for an external broker, that has changed availability. Must not be {@code
4040
* null}.

spring-test/src/main/java/org/springframework/test/context/aot/AotTestAttributes.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ default void setAttribute(String name, boolean value) {
124124
* Retrieve the attribute value for the given name as a {@code boolean}.
125125
* @param name the unique attribute name
126126
* @return {@code true} if the attribute is set to "true" (ignoring case),
127-
* {@code} false otherwise
127+
* {@code false} otherwise
128128
* @see #getString(String)
129129
* @see #setAttribute(String, String)
130130
* @see Boolean#parseBoolean(String)

spring-tx/src/main/java/org/springframework/jca/endpoint/AbstractMessageEndpointFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public void setBeanName(String beanName) {
144144

145145
/**
146146
* Implementation of the JCA 1.7 {@code #getEndpointClass()} method,
147-
* returning {@code} null in order to indicate a synthetic endpoint type.
147+
* returning {@code null} in order to indicate a synthetic endpoint type.
148148
*/
149149
@Override
150150
public @Nullable Class<?> getEndpointClass() {

spring-web/src/main/java/org/springframework/http/converter/json/AbstractJsonHttpMessageConverter.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ protected final void writeInternal(Object object, @Nullable Type type, HttpOutpu
133133
/**
134134
* Template method that reads the JSON-bound object from the given {@link Reader}.
135135
* @param resolvedType the resolved generic type
136-
* @param reader the {@code} Reader to use
136+
* @param reader the {@code Reader} to use
137137
* @return the JSON-bound object
138138
* @throws Exception in case of read/parse failures
139139
*/
@@ -143,7 +143,7 @@ protected final void writeInternal(Object object, @Nullable Type type, HttpOutpu
143143
* Template method that writes the JSON-bound object to the given {@link Writer}.
144144
* @param object the object to write to the output message
145145
* @param type the type of object to write (may be {@code null})
146-
* @param writer the {@code} Writer to use
146+
* @param writer the {@code Writer} to use
147147
* @throws Exception in case of write failures
148148
*/
149149
protected abstract void writeInternal(Object object, @Nullable Type type, Writer writer) throws Exception;

spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceTransformerSupport.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void setResourceUrlProvider(@Nullable ResourceUrlProvider resourceUrlProv
6666
* @param request the current request
6767
* @param resource the resource being transformed
6868
* @param transformerChain the transformer chain
69-
* @return the resolved URL, or {@code} if not resolvable
69+
* @return the resolved URL, or {@code null} if not resolvable
7070
*/
7171
protected @Nullable String resolveUrlPath(String resourcePath, HttpServletRequest request,
7272
Resource resource, ResourceTransformerChain transformerChain) {

0 commit comments

Comments
 (0)