From fe8d7c3bd7906b3fe53d9aadd8a84fd61d888348 Mon Sep 17 00:00:00 2001 From: Ralph von Petersdorff-Campen Date: Fri, 6 Dec 2024 16:27:30 +0100 Subject: [PATCH] Review comments RISDEV-5645 --- .../caselaw/adapter/converter/docx/HyperlinkConverter.java | 4 ++-- .../ris/caselaw/domain/docx/UnhandledElementType.java | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/de/bund/digitalservice/ris/caselaw/adapter/converter/docx/HyperlinkConverter.java b/backend/src/main/java/de/bund/digitalservice/ris/caselaw/adapter/converter/docx/HyperlinkConverter.java index d9ec2d208a..29c3a6e722 100644 --- a/backend/src/main/java/de/bund/digitalservice/ris/caselaw/adapter/converter/docx/HyperlinkConverter.java +++ b/backend/src/main/java/de/bund/digitalservice/ris/caselaw/adapter/converter/docx/HyperlinkConverter.java @@ -41,13 +41,13 @@ public static void convert( } else if (content instanceof JAXBElement jaxbElement) { unhandledElements.add( new UnhandledElement( - "paragraph", + "hyperlink", jaxbElement.getDeclaredType().toString(), UnhandledElementType.JAXB)); } else { unhandledElements.add( new UnhandledElement( - "paragraph", content.getClass().toString(), UnhandledElementType.OBJECT)); + "hyperlink", content.getClass().toString(), UnhandledElementType.OBJECT)); } }); } diff --git a/backend/src/main/java/de/bund/digitalservice/ris/caselaw/domain/docx/UnhandledElementType.java b/backend/src/main/java/de/bund/digitalservice/ris/caselaw/domain/docx/UnhandledElementType.java index 693895cdd6..c883c10e7e 100644 --- a/backend/src/main/java/de/bund/digitalservice/ris/caselaw/domain/docx/UnhandledElementType.java +++ b/backend/src/main/java/de/bund/digitalservice/ris/caselaw/domain/docx/UnhandledElementType.java @@ -1,5 +1,9 @@ package de.bund.digitalservice.ris.caselaw.domain.docx; +/** + * Element type for unhandled elements to know on xml parsing was used for the xml element. + * Hopefully easier to find for the later implementation of the element. + */ public enum UnhandledElementType { JAXB, OBJECT