Browse Source

Fix Javadoc @code tags

Signed-off-by: Johnny Lim <izeye@naver.com>
pull/34342/head
Johnny Lim 11 months ago
parent
commit
042b78f609
  1. 2
      spring-core/src/main/java/org/springframework/core/SpringProperties.java
  2. 8
      spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcOperations.java
  3. 4
      spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/NamedParameterJdbcOperations.java
  4. 4
      spring-messaging/src/main/java/org/springframework/messaging/simp/broker/BrokerAvailabilityEvent.java
  5. 2
      spring-test/src/main/java/org/springframework/test/context/aot/AotTestAttributes.java
  6. 2
      spring-tx/src/main/java/org/springframework/jca/endpoint/AbstractMessageEndpointFactory.java
  7. 4
      spring-web/src/main/java/org/springframework/http/converter/json/AbstractJsonHttpMessageConverter.java
  8. 2
      spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceTransformerSupport.java

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

@ -123,7 +123,7 @@ public final class SpringProperties { @@ -123,7 +123,7 @@ public final class SpringProperties {
* 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));

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

@ -163,7 +163,7 @@ public interface JdbcOperations { @@ -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 @@ public interface JdbcOperations { @@ -598,7 +598,7 @@ public interface JdbcOperations {
* (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 @@ public interface JdbcOperations { @@ -617,7 +617,7 @@ public interface JdbcOperations {
* 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 @@ public interface JdbcOperations { @@ -637,7 +637,7 @@ public interface JdbcOperations {
* 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

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

@ -267,7 +267,7 @@ public interface NamedParameterJdbcOperations { @@ -267,7 +267,7 @@ public interface NamedParameterJdbcOperations {
* @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 @@ public interface NamedParameterJdbcOperations { @@ -284,7 +284,7 @@ public interface NamedParameterJdbcOperations {
* (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

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

@ -33,8 +33,8 @@ public class BrokerAvailabilityEvent extends ApplicationEvent { @@ -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}.

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

@ -124,7 +124,7 @@ public interface AotTestAttributes { @@ -124,7 +124,7 @@ public interface AotTestAttributes {
* 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)

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

@ -144,7 +144,7 @@ public abstract class AbstractMessageEndpointFactory implements MessageEndpointF @@ -144,7 +144,7 @@ public abstract class AbstractMessageEndpointFactory implements MessageEndpointF
/**
* 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() {

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

@ -133,7 +133,7 @@ public abstract class AbstractJsonHttpMessageConverter extends AbstractGenericHt @@ -133,7 +133,7 @@ public abstract class AbstractJsonHttpMessageConverter extends AbstractGenericHt
/**
* 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 @@ public abstract class AbstractJsonHttpMessageConverter extends AbstractGenericHt @@ -143,7 +143,7 @@ public abstract class AbstractJsonHttpMessageConverter extends AbstractGenericHt
* 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;

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

@ -66,7 +66,7 @@ public abstract class ResourceTransformerSupport implements ResourceTransformer @@ -66,7 +66,7 @@ public abstract class ResourceTransformerSupport implements ResourceTransformer
* @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) {

Loading…
Cancel
Save