diff --git a/spring-core/src/main/java/org/springframework/core/SpringProperties.java b/spring-core/src/main/java/org/springframework/core/SpringProperties.java index d1307c7c7e56..70e64606f87f 100644 --- a/spring-core/src/main/java/org/springframework/core/SpringProperties.java +++ b/spring-core/src/main/java/org/springframework/core/SpringProperties.java @@ -123,7 +123,7 @@ public static void setFlag(String key) { * Retrieve the flag for the given property key. * @param key the property key * @return {@code true} if the property is set to the string "true" - * (ignoring case), {@code} false otherwise + * (ignoring case), {@code false} otherwise */ public static boolean getFlag(String key) { return Boolean.parseBoolean(getProperty(key)); diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcOperations.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcOperations.java index acbdd5b56915..94fd24f425af 100644 --- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcOperations.java +++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcOperations.java @@ -163,7 +163,7 @@ public interface JdbcOperations { * @param sql the SQL query to execute * @param rowMapper a callback that will map one object per row * @return the single mapped object (may be {@code null} if the given - * {@link RowMapper} returned {@code} null) + * {@link RowMapper} returned {@code null}) * @throws org.springframework.dao.IncorrectResultSizeDataAccessException * if the query does not return exactly one row * @throws DataAccessException if there is any problem executing the query @@ -598,7 +598,7 @@ Stream queryForStream(String sql, RowMapper rowMapper, @Nullable Objec * (constants from {@code java.sql.Types}) * @param rowMapper a callback that will map one object per row * @return the single mapped object (may be {@code null} if the given - * {@link RowMapper} returned {@code} null) + * {@link RowMapper} returned {@code null}) * @throws org.springframework.dao.IncorrectResultSizeDataAccessException * if the query does not return exactly one row * @throws DataAccessException if the query fails @@ -617,7 +617,7 @@ Stream queryForStream(String sql, RowMapper rowMapper, @Nullable Objec * only the argument value but also the SQL type and optionally the scale * @param rowMapper a callback that will map one object per row * @return the single mapped object (may be {@code null} if the given - * {@link RowMapper} returned {@code} null) + * {@link RowMapper} returned {@code null}) * @throws org.springframework.dao.IncorrectResultSizeDataAccessException * if the query does not return exactly one row * @throws DataAccessException if the query fails @@ -637,7 +637,7 @@ Stream queryForStream(String sql, RowMapper rowMapper, @Nullable Objec * may also contain {@link SqlParameterValue} objects which indicate not * only the argument value but also the SQL type and optionally the scale * @return the single mapped object (may be {@code null} if the given - * {@link RowMapper} returned {@code} null) + * {@link RowMapper} returned {@code null}) * @throws org.springframework.dao.IncorrectResultSizeDataAccessException * if the query does not return exactly one row * @throws DataAccessException if the query fails diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/NamedParameterJdbcOperations.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/NamedParameterJdbcOperations.java index 4edfe6aae5a1..b335ee3d259a 100644 --- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/NamedParameterJdbcOperations.java +++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/NamedParameterJdbcOperations.java @@ -267,7 +267,7 @@ Stream queryForStream(String sql, Map paramMap, RowMapper r * @param paramSource container of arguments to bind to the query * @param rowMapper object that will map one object per row * @return the single mapped object (may be {@code null} if the given - * {@link RowMapper} returned {@code} null) + * {@link RowMapper} returned {@code null}) * @throws org.springframework.dao.IncorrectResultSizeDataAccessException * if the query does not return exactly one row * @throws DataAccessException if the query fails @@ -284,7 +284,7 @@ Stream queryForStream(String sql, Map paramMap, RowMapper r * (leaving it to the PreparedStatement to guess the corresponding SQL type) * @param rowMapper object that will map one object per row * @return the single mapped object (may be {@code null} if the given - * {@link RowMapper} returned {@code} null) + * {@link RowMapper} returned {@code null}) * @throws org.springframework.dao.IncorrectResultSizeDataAccessException * if the query does not return exactly one row * @throws DataAccessException if the query fails diff --git a/spring-messaging/src/main/java/org/springframework/messaging/simp/broker/BrokerAvailabilityEvent.java b/spring-messaging/src/main/java/org/springframework/messaging/simp/broker/BrokerAvailabilityEvent.java index 31e8b1ea8cdf..a3e5e977364e 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/simp/broker/BrokerAvailabilityEvent.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/simp/broker/BrokerAvailabilityEvent.java @@ -33,8 +33,8 @@ public class BrokerAvailabilityEvent extends ApplicationEvent { /** * Creates a new {@code BrokerAvailabilityEvent}. * - * @param brokerAvailable {@code true} if the broker is available, {@code} - * false otherwise + * @param brokerAvailable {@code true} if the broker is available, {@code + * false} otherwise * @param source the component that is acting as the broker, or as a relay * for an external broker, that has changed availability. Must not be {@code * null}. diff --git a/spring-test/src/main/java/org/springframework/test/context/aot/AotTestAttributes.java b/spring-test/src/main/java/org/springframework/test/context/aot/AotTestAttributes.java index 497707c7486c..b1701caf4d2d 100644 --- a/spring-test/src/main/java/org/springframework/test/context/aot/AotTestAttributes.java +++ b/spring-test/src/main/java/org/springframework/test/context/aot/AotTestAttributes.java @@ -124,7 +124,7 @@ default void setAttribute(String name, boolean value) { * Retrieve the attribute value for the given name as a {@code boolean}. * @param name the unique attribute name * @return {@code true} if the attribute is set to "true" (ignoring case), - * {@code} false otherwise + * {@code false} otherwise * @see #getString(String) * @see #setAttribute(String, String) * @see Boolean#parseBoolean(String) diff --git a/spring-tx/src/main/java/org/springframework/jca/endpoint/AbstractMessageEndpointFactory.java b/spring-tx/src/main/java/org/springframework/jca/endpoint/AbstractMessageEndpointFactory.java index 9ec48e76ac60..1e75672507bf 100644 --- a/spring-tx/src/main/java/org/springframework/jca/endpoint/AbstractMessageEndpointFactory.java +++ b/spring-tx/src/main/java/org/springframework/jca/endpoint/AbstractMessageEndpointFactory.java @@ -144,7 +144,7 @@ public void setBeanName(String beanName) { /** * Implementation of the JCA 1.7 {@code #getEndpointClass()} method, - * returning {@code} null in order to indicate a synthetic endpoint type. + * returning {@code null} in order to indicate a synthetic endpoint type. */ @Override public @Nullable Class getEndpointClass() { diff --git a/spring-web/src/main/java/org/springframework/http/converter/json/AbstractJsonHttpMessageConverter.java b/spring-web/src/main/java/org/springframework/http/converter/json/AbstractJsonHttpMessageConverter.java index 1ee9591ea35f..a4c591af8974 100644 --- a/spring-web/src/main/java/org/springframework/http/converter/json/AbstractJsonHttpMessageConverter.java +++ b/spring-web/src/main/java/org/springframework/http/converter/json/AbstractJsonHttpMessageConverter.java @@ -133,7 +133,7 @@ protected final void writeInternal(Object object, @Nullable Type type, HttpOutpu /** * Template method that reads the JSON-bound object from the given {@link Reader}. * @param resolvedType the resolved generic type - * @param reader the {@code} Reader to use + * @param reader the {@code Reader} to use * @return the JSON-bound object * @throws Exception in case of read/parse failures */ @@ -143,7 +143,7 @@ protected final void writeInternal(Object object, @Nullable Type type, HttpOutpu * Template method that writes the JSON-bound object to the given {@link Writer}. * @param object the object to write to the output message * @param type the type of object to write (may be {@code null}) - * @param writer the {@code} Writer to use + * @param writer the {@code Writer} to use * @throws Exception in case of write failures */ protected abstract void writeInternal(Object object, @Nullable Type type, Writer writer) throws Exception; diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceTransformerSupport.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceTransformerSupport.java index d14eecca15fd..f0a6b5a1462d 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceTransformerSupport.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceTransformerSupport.java @@ -66,7 +66,7 @@ public void setResourceUrlProvider(@Nullable ResourceUrlProvider resourceUrlProv * @param request the current request * @param resource the resource being transformed * @param transformerChain the transformer chain - * @return the resolved URL, or {@code} if not resolvable + * @return the resolved URL, or {@code null} if not resolvable */ protected @Nullable String resolveUrlPath(String resourcePath, HttpServletRequest request, Resource resource, ResourceTransformerChain transformerChain) {