Skip to content

Commit

Permalink
Fix getnamespaceAndTag method
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Jul 22, 2024
1 parent 1c82220 commit b349e81
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ public String getparentStandardType() {
public String getnamespaceAndTag() {
StructureType type = ((org.verapdf.pd.structure.PDStructElem)simplePDObject).getStructureType();
if (type != null) {
return (type.getType() != null ? type.getType() : "null") + ":" + (type.getNameSpaceURI() != null ? type.getNameSpaceURI() : "null");
return String.format("%s:%s", type.getNameSpaceURI() != null ? type.getNameSpaceURI() : "null",
type.getType() != null ? type.getType() : "null");
}
return null;
}
Expand Down

0 comments on commit b349e81

Please sign in to comment.