From 3edc57aa32842b915e992d93bc1e6f549fba75c8 Mon Sep 17 00:00:00 2001 From: Maxim Date: Mon, 22 Jul 2024 15:14:00 +0300 Subject: [PATCH] Fix getnamespaceAndTag method --- .../main/java/org/verapdf/gf/model/impl/pd/GFPDStructElem.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/validation-model/src/main/java/org/verapdf/gf/model/impl/pd/GFPDStructElem.java b/validation-model/src/main/java/org/verapdf/gf/model/impl/pd/GFPDStructElem.java index 83646f352..3ca782504 100644 --- a/validation-model/src/main/java/org/verapdf/gf/model/impl/pd/GFPDStructElem.java +++ b/validation-model/src/main/java/org/verapdf/gf/model/impl/pd/GFPDStructElem.java @@ -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; }