Skip to content

Commit 4b54ca4

Browse files
committed
Polish PropertySourceDescriptor
1 parent 169392e commit 4b54ca4

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

spring-core/src/main/java/org/springframework/core/io/support/PropertySourceDescriptor.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -19,20 +19,22 @@
1919
import java.util.Arrays;
2020
import java.util.List;
2121

22-
import org.springframework.core.env.PropertySource;
2322
import org.springframework.lang.Nullable;
2423

2524
/**
26-
* Describe a {@link PropertySource}.
25+
* Descriptor for a {@link org.springframework.core.env.PropertySource PropertySource}.
2726
*
2827
* @param locations the locations to consider
29-
* @param ignoreResourceNotFound whether to fail if a location does not exist
28+
* @param ignoreResourceNotFound whether a failure to find a property resource
29+
* should be ignored
3030
* @param name the name of the property source, or {@code null} to infer one
31-
* @param propertySourceFactory the {@link PropertySourceFactory} to use, or
32-
* {@code null} to use the default
31+
* @param propertySourceFactory the type of {@link PropertySourceFactory} to use,
32+
* or {@code null} to use the default
3333
* @param encoding the encoding, or {@code null} to use the default encoding
3434
* @author Stephane Nicoll
3535
* @since 6.0
36+
* @see org.springframework.core.env.PropertySource
37+
* @see org.springframework.context.annotation.PropertySource
3638
*/
3739
public record PropertySourceDescriptor(List<String> locations, boolean ignoreResourceNotFound,
3840
@Nullable String name, @Nullable Class<? extends PropertySourceFactory> propertySourceFactory,

0 commit comments

Comments
 (0)