From 2690ceb43d367db7027001b105dda9864fc1af61 Mon Sep 17 00:00:00 2001 From: Pascal Christoph Date: Mon, 6 May 2024 16:56:17 +0200 Subject: [PATCH] Make classes final (#527) --- .../java/org/metafacture/biblio/marc21/Marc21XmlEncoder.java | 2 +- .../main/java/org/metafacture/biblio/marc21/MarcXmlEncoder.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/metafacture-biblio/src/main/java/org/metafacture/biblio/marc21/Marc21XmlEncoder.java b/metafacture-biblio/src/main/java/org/metafacture/biblio/marc21/Marc21XmlEncoder.java index 445bce46e..6b94e9bc4 100644 --- a/metafacture-biblio/src/main/java/org/metafacture/biblio/marc21/Marc21XmlEncoder.java +++ b/metafacture-biblio/src/main/java/org/metafacture/biblio/marc21/Marc21XmlEncoder.java @@ -32,7 +32,7 @@ @Out(String.class) @Description("Encodes MARC21 records as MARCXML. It wraps 'encode-marc21 | decode-marc21 | encode-marcxml ' to generate MARCXML more safely, especially when the building the 'leader'.") @FluxCommand("encode-marc21xml") -public class Marc21XmlEncoder extends AbstractMarcXmlEncoder { +public final class Marc21XmlEncoder extends AbstractMarcXmlEncoder { private final Marc21Decoder marc21Decoder = new Marc21Decoder(); private final Marc21Encoder marc21Encoder = new Marc21Encoder(); private final MarcXmlEncoder marcXmlEncoder = new MarcXmlEncoder(); diff --git a/metafacture-biblio/src/main/java/org/metafacture/biblio/marc21/MarcXmlEncoder.java b/metafacture-biblio/src/main/java/org/metafacture/biblio/marc21/MarcXmlEncoder.java index 74279fcf0..0ab48e3e0 100644 --- a/metafacture-biblio/src/main/java/org/metafacture/biblio/marc21/MarcXmlEncoder.java +++ b/metafacture-biblio/src/main/java/org/metafacture/biblio/marc21/MarcXmlEncoder.java @@ -38,7 +38,7 @@ @In(StreamReceiver.class) @Out(String.class) @FluxCommand("encode-marcxml") -public class MarcXmlEncoder extends AbstractMarcXmlEncoder { +public final class MarcXmlEncoder extends AbstractMarcXmlEncoder { public static final String NAMESPACE_NAME = "marc"; public static final String XML_ENCODING = "UTF-8";