From 9f238c997d914cf9162dac9801a2f56dae359a3f Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Wed, 11 May 2022 08:47:46 +0200 Subject: [PATCH] Polishing --- .../context/index/processor/StereotypesProvider.java | 5 +++-- .../src/main/java/org/springframework/core/io/Resource.java | 6 +++--- .../jdbc/support/SQLExceptionSubclassTranslator.java | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/spring-context-indexer/src/main/java/org/springframework/context/index/processor/StereotypesProvider.java b/spring-context-indexer/src/main/java/org/springframework/context/index/processor/StereotypesProvider.java index e0e5f7a7422c..e25d16a3b705 100644 --- a/spring-context-indexer/src/main/java/org/springframework/context/index/processor/StereotypesProvider.java +++ b/spring-context-indexer/src/main/java/org/springframework/context/index/processor/StereotypesProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,8 @@ /** * Provide the list of stereotypes that match an {@link Element}. - * If an element has one more stereotypes, it is referenced in the index + * + *

If an element has one or more stereotypes, it is referenced in the index * of candidate components and each stereotype can be queried individually. * * @author Stephane Nicoll diff --git a/spring-core/src/main/java/org/springframework/core/io/Resource.java b/spring-core/src/main/java/org/springframework/core/io/Resource.java index 1995ee783e6d..708aef5550c0 100644 --- a/spring-core/src/main/java/org/springframework/core/io/Resource.java +++ b/spring-core/src/main/java/org/springframework/core/io/Resource.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -99,14 +99,14 @@ default boolean isFile() { /** * Return a URL handle for this resource. * @throws IOException if the resource cannot be resolved as URL, - * i.e. if the resource is not available as descriptor + * i.e. if the resource is not available as a descriptor */ URL getURL() throws IOException; /** * Return a URI handle for this resource. * @throws IOException if the resource cannot be resolved as URI, - * i.e. if the resource is not available as descriptor + * i.e. if the resource is not available as a descriptor * @since 2.5 */ URI getURI() throws IOException; diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/support/SQLExceptionSubclassTranslator.java b/spring-jdbc/src/main/java/org/springframework/jdbc/support/SQLExceptionSubclassTranslator.java index 3532753e8cc5..7e86c84fce43 100644 --- a/spring-jdbc/src/main/java/org/springframework/jdbc/support/SQLExceptionSubclassTranslator.java +++ b/spring-jdbc/src/main/java/org/springframework/jdbc/support/SQLExceptionSubclassTranslator.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2017 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -53,7 +53,7 @@ * @author Juergen Hoeller * @since 2.5 * @see java.sql.SQLTransientException - * @see java.sql.SQLTransientException + * @see java.sql.SQLNonTransientException * @see java.sql.SQLRecoverableException */ public class SQLExceptionSubclassTranslator extends AbstractFallbackSQLExceptionTranslator {