From 0cb65b1f16dcf5e847092e89996decef8be92edf Mon Sep 17 00:00:00 2001 From: Jing Tao Date: Mon, 28 Oct 2024 12:09:16 -0700 Subject: [PATCH] Change the method setXmlNamespaceConfig from static to non-static. This fix an issue that a bean is not writtable after we upgraded spring. It seems the change doesn't cause any issues in the project. --- .../cn/indexer/parser/BaseXPathDocumentSubprocessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/dataone/cn/indexer/parser/BaseXPathDocumentSubprocessor.java b/src/main/java/org/dataone/cn/indexer/parser/BaseXPathDocumentSubprocessor.java index 1be93575..e15cc90f 100644 --- a/src/main/java/org/dataone/cn/indexer/parser/BaseXPathDocumentSubprocessor.java +++ b/src/main/java/org/dataone/cn/indexer/parser/BaseXPathDocumentSubprocessor.java @@ -166,7 +166,7 @@ public void setMatchDocuments(List matchDocuments) { this.matchDocuments = matchDocuments; } - public static void setXmlNamespaceConfig(XMLNamespaceConfig xmlNamespaceConfig) { + public void setXmlNamespaceConfig(XMLNamespaceConfig xmlNamespaceConfig) { xpath.setNamespaceContext(xmlNamespaceConfig); }