From bd23798323fd9b0a2fb29dd2d28bb3612f9c17fe Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Thu, 3 Aug 2023 14:33:53 +0300 Subject: [PATCH] Polish Javadoc for PropertySourceDescriptor --- .../core/io/support/PropertySourceDescriptor.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/spring-core/src/main/java/org/springframework/core/io/support/PropertySourceDescriptor.java b/spring-core/src/main/java/org/springframework/core/io/support/PropertySourceDescriptor.java index 2f0b13b3cc..89140dcc0d 100644 --- a/spring-core/src/main/java/org/springframework/core/io/support/PropertySourceDescriptor.java +++ b/spring-core/src/main/java/org/springframework/core/io/support/PropertySourceDescriptor.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2022 the original author or authors. + * Copyright 2002-2023 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. @@ -19,20 +19,22 @@ package org.springframework.core.io.support; import java.util.Arrays; import java.util.List; -import org.springframework.core.env.PropertySource; import org.springframework.lang.Nullable; /** - * Describe a {@link PropertySource}. + * Descriptor for a {@link org.springframework.core.env.PropertySource PropertySource}. * * @param locations the locations to consider - * @param ignoreResourceNotFound whether to fail if a location does not exist + * @param ignoreResourceNotFound whether a failure to find a property resource + * should be ignored * @param name the name of the property source, or {@code null} to infer one * @param propertySourceFactory the {@link PropertySourceFactory} to use, or * {@code null} to use the default * @param encoding the encoding, or {@code null} to use the default encoding * @author Stephane Nicoll * @since 6.0 + * @see org.springframework.core.env.PropertySource + * @see org.springframework.context.annotation.PropertySource */ public record PropertySourceDescriptor(List locations, boolean ignoreResourceNotFound, @Nullable String name, @Nullable Class propertySourceFactory,