This is an automated email from the ASF dual-hosted git repository. andy pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/jena.git
The following commit(s) were added to refs/heads/main by this push: new f1dbe72 move RDFWriterRegistry static initialization block so it executes after static fields are initialized new 4b54442 Merge pull request #1147 from TopQuadrant/RDFWriterRegistry-init f1dbe72 is described below commit f1dbe72524df6d0ef8ccb3845dee2de8237ad3a7 Author: Brian Vosburgh <bvosbu...@topquadrant.com> AuthorDate: Mon Dec 27 15:51:43 2021 -0500 move RDFWriterRegistry static initialization block so it executes after static fields are initialized --- jena-arq/src/main/java/org/apache/jena/riot/RDFWriterRegistry.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jena-arq/src/main/java/org/apache/jena/riot/RDFWriterRegistry.java b/jena-arq/src/main/java/org/apache/jena/riot/RDFWriterRegistry.java index 8904c18..e8634b8 100644 --- a/jena-arq/src/main/java/org/apache/jena/riot/RDFWriterRegistry.java +++ b/jena-arq/src/main/java/org/apache/jena/riot/RDFWriterRegistry.java @@ -45,12 +45,12 @@ public class RDFWriterRegistry // Let the serializer deal with the character issues. // UTF-8 is universal - but UTF-8 is not the default in Java ("platform encoding" is). - static { JenaSystem.init() ; } - private static Map<RDFFormat, WriterGraphRIOTFactory> registryGraph = new HashMap<>() ; private static Map<RDFFormat, WriterDatasetRIOTFactory> registryDataset = new HashMap<>() ; private static Map<Lang, RDFFormat> langToFormat = new HashMap<>() ; + static { JenaSystem.init() ; } + // Writing a graph static WriterGraphRIOTFactory wgfactory = new WriterGraphRIOTFactory() { @Override