From b0f43c0bb5b9e03599070ddb4c4c8ef0a5224628 Mon Sep 17 00:00:00 2001 From: Marcel Westenberg Aimpulse Date: Tue, 7 Apr 2026 18:01:36 +0200 Subject: [PATCH] Extracted local constant for XML description --- .../org/mustangproject/ZUGFeRD/ZUGFeRDExporterFromA3.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDExporterFromA3.java b/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDExporterFromA3.java index 9925310c..d0e32bb7 100644 --- a/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDExporterFromA3.java +++ b/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDExporterFromA3.java @@ -77,8 +77,11 @@ import jakarta.activation.DataSource; import jakarta.activation.FileDataSource; public class ZUGFeRDExporterFromA3 extends XRExporter implements IZUGFeRDExporter { - private boolean isFacturX = true; + + private static final String XML_DESCRIPTION = https://www.ferd-net.de/en/standards/zugferd/factur-x; + private boolean isFacturX = true; + public static final int DefaultZUGFeRDVersion = 2; protected boolean ignorePDFAErrors = false; @@ -673,8 +676,7 @@ public class ZUGFeRDExporterFromA3 extends XRExporter implements IZUGFeRDExporte } PDFAttachGenericFile(doc, filename, relationship, - "Invoice metadata conforming to ZUGFeRD standard (https://www.ferd-net.de/en/standards/zugferd/factur-x)", - "text/xml", xmlProvider.getXML()); + XML_DESCRIPTION, "text/xml", xmlProvider.getXML()); for (FileAttachment attachment : fileAttachments) { PDFAttachGenericFile(doc, attachment.getFilename(), attachment.getRelation(), attachment.getDescription(), attachment.getMimetype(), attachment.getData());