fix:fix javadoc. (#727)

pull/729/head
lingxiao,wu 2 years ago committed by GitHub
parent d4c4186c8e
commit ec8e88059c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -10,3 +10,4 @@
- [upgrade protobuf-java.version to 3.21.7.](https://github.com/Tencent/spring-cloud-tencent/pull/717)
- [docs:update README.](https://github.com/Tencent/spring-cloud-tencent/pull/720)
- [Code optimization & correct comment](https://github.com/Tencent/spring-cloud-tencent/pull/724)
- [fix:fix javadoc.](https://github.com/Tencent/spring-cloud-tencent/pull/727)

@ -52,7 +52,7 @@ public class PlaceholderHelper {
* @param beanFactory beanFactory
* @param beanName beanName
* @param placeholder placeholder
* @return "${somePropertyValue}" -> "the actual property value"
* @return "${somePropertyValue}" -> "the actual property value"
*/
public Object resolvePropertyValue(ConfigurableBeanFactory beanFactory, String beanName, String placeholder) {
// resolve string value
@ -77,16 +77,16 @@ public class PlaceholderHelper {
}
/**
*
* @param propertyString propertyString
* @return
* Extract keys from placeholder, e.g.
* <li>${some.key} => "some.key"</li>
* <li>${some.key:${some.other.key:100}} => "some.key", "some.other.key"</li>
* <li>${${some.key}} => "some.key"</li>
* <li>${${some.key:other.key}} => "some.key"</li>
* <li>${${some.key}:${another.key}} => "some.key", "another.key"</li>
* <li>#{new java.text.SimpleDateFormat('${some.key}').parse('${another.key}')} => "some.key", "another.key"</li>
* @return Extract keys from placeholder, e.g.
* <ul>
* <li>${some.key} =&gt; "some.key"</li>
* <li>${some.key:${some.other.key:100}} =&gt; "some.key", "some.other.key"</li>
* <li>${${some.key}} =&gt; "some.key"</li>
* <li>${${some.key:other.key}} =&gt; "some.key"</li>
* <li>${${some.key}:${another.key}} =&gt; "some.key", "another.key"</li>
* <li>#{new java.text.SimpleDateFormat('${some.key}').parse('${another.key}')} =&gt; "some.key", "another.key"</li>
* </ul>
*/
public Set<String> extractPlaceholderKeys(String propertyString) {
Set<String> placeholderKeys = Sets.newHashSet();

Loading…
Cancel
Save