Replace deprecated methods
This commit is contained in:
committed by
Josh Cummings
parent
0cefb27928
commit
52e12ad64b
@@ -179,7 +179,7 @@ public class SpringSecurityXsdParser {
|
||||
*/
|
||||
private Element elmt(XmlNode n) {
|
||||
String name = n.attribute("ref");
|
||||
if (StringUtils.isEmpty(name)) {
|
||||
if (!StringUtils.hasLength(name)) {
|
||||
name = n.attribute("name");
|
||||
}
|
||||
else {
|
||||
@@ -199,7 +199,7 @@ public class SpringSecurityXsdParser {
|
||||
e.getAttrs().forEach((attr) -> attr.setElmt(e));
|
||||
e.getChildElmts().values().forEach((element) -> element.getParentElmts().put(e.getName(), e));
|
||||
String subGrpName = n.attribute("substitutionGroup");
|
||||
if (!StringUtils.isEmpty(subGrpName)) {
|
||||
if (StringUtils.hasLength(subGrpName)) {
|
||||
Element subGrp = elmt(findNode(n, subGrpName.split(":")[1]));
|
||||
subGrp.getSubGrps().add(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user