mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Merge branch '2.7.x'
Closes gh-33844
This commit is contained in:
commit
e3483f10be
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2022 the original author or authors.
|
* Copyright 2012-2023 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,9 +99,10 @@ class PluginXmlParser {
|
|||||||
|
|
||||||
private Parameter parseParameter(Node parameterNode, Map<String, String> defaultValues,
|
private Parameter parseParameter(Node parameterNode, Map<String, String> defaultValues,
|
||||||
Map<String, String> userProperties) throws XPathExpressionException {
|
Map<String, String> userProperties) throws XPathExpressionException {
|
||||||
|
String description = textAt("description", parameterNode);
|
||||||
return new Parameter(textAt("name", parameterNode), textAt("type", parameterNode),
|
return new Parameter(textAt("name", parameterNode), textAt("type", parameterNode),
|
||||||
booleanAt("required", parameterNode), booleanAt("editable", parameterNode),
|
booleanAt("required", parameterNode), booleanAt("editable", parameterNode),
|
||||||
format(textAt("description", parameterNode)), defaultValues.get(textAt("name", parameterNode)),
|
(description != null) ? format(description) : "", defaultValues.get(textAt("name", parameterNode)),
|
||||||
userProperties.get(textAt("name", parameterNode)), textAt("since", parameterNode));
|
userProperties.get(textAt("name", parameterNode)), textAt("since", parameterNode));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user