Skip to content

Commit 24197d4

Browse files
committed
Fix Attribute class code quality
1 parent eed14a3 commit 24197d4

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

gamsaml20/src/main/java/com/genexus/saml20/utils/xml/Attribute.java

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,26 @@
44

55
import java.text.MessageFormat;
66

7-
public class Attribute extends XmlTypes{
7+
public class Attribute extends XmlTypes {
88

99
Element element;
1010
private final String tag;
1111

12-
public Attribute(String namespace, String element, String tag)
13-
{
12+
public Attribute(String namespace, String element, String tag) {
1413
this.element = new Element(namespace, element);
1514
this.tag = tag;
1615
}
1716

18-
public String getTag()
19-
{
17+
public String getTag() {
2018
return tag;
2119
}
2220

23-
public String findValue(Document doc)
24-
{
21+
public String findValue(Document doc) {
2522
return element.getElement(doc).getAttributes().getNamedItem(tag).getNodeValue();
2623
}
2724

28-
public String printJson(Document xmlDoc)
29-
{
25+
public String printJson(Document xmlDoc) {
3026
String value = findValue(xmlDoc);
31-
return value == null ? null : MessageFormat.format( "\"{0}\": \"{1}\"", tag, value);
27+
return value == null ? null : MessageFormat.format("\"{0}\": \"{1}\"", tag, value);
3228
}
3329
}

0 commit comments

Comments
 (0)