Browse Source

Polishing

pull/27953/head
Juergen Hoeller 3 years ago
parent
commit
f771603789
  1. 3
      spring-context-indexer/src/main/java/org/springframework/context/index/processor/StereotypesProvider.java
  2. 6
      spring-core/src/main/java/org/springframework/core/io/Resource.java

3
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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with 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}. * Provide the list of stereotypes that match an {@link Element}.
*
* <p>If an element has one or more stereotypes, it is referenced in the index * <p>If an element has one or more stereotypes, it is referenced in the index
* of candidate components and each stereotype can be queried individually. * of candidate components and each stereotype can be queried individually.
* *

6
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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with 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. * Return a URL handle for this resource.
* @throws IOException if the resource cannot be resolved as URL, * @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; URL getURL() throws IOException;
/** /**
* Return a URI handle for this resource. * Return a URI handle for this resource.
* @throws IOException if the resource cannot be resolved as URI, * @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 * @since 2.5
*/ */
URI getURI() throws IOException; URI getURI() throws IOException;

Loading…
Cancel
Save