From f77160378965040d46ce4a0dd81b09bcda23feaf Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Thu, 5 May 2022 18:04:54 +0200 Subject: [PATCH] Polishing --- .../context/index/processor/StereotypesProvider.java | 3 ++- .../src/main/java/org/springframework/core/io/Resource.java | 6 +++--- 2 files changed, 5 insertions(+), 4 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 4061ca6ac4..e25d16a3b7 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-2021 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,6 +22,7 @@ import javax.lang.model.element.Element; /** * Provide the list of stereotypes that match an {@link Element}. + * *

If an element has one or more stereotypes, it is referenced in the index * of candidate components and each stereotype can be queried individually. * 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 1995ee783e..708aef5550 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 @@ public interface Resource extends InputStreamSource { /** * 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;