You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by mb...@apache.org on 2022/08/17 12:58:06 UTC
[daffodil] branch main updated: Allow DataProcessor's copy function to be public.
This is an automated email from the ASF dual-hosted git repository.
mbeckerle pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil.git
The following commit(s) were added to refs/heads/main by this push:
new da0a424f9 Allow DataProcessor's copy function to be public.
da0a424f9 is described below
commit da0a424f9e35164487d3218880a261c9169aa7ba
Author: Michael Beckerle <mb...@apache.org>
AuthorDate: Tue Aug 16 21:18:12 2022 -0400
Allow DataProcessor's copy function to be public.
I need this function for various test rigs I am creating for large schemas where copying the DP saves 10 seconds a test for reloading another one just because I can't copy the object.
DAFFODIL-2723
---
.../src/main/scala/org/apache/daffodil/processors/DataProcessor.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/daffodil-runtime1/src/main/scala/org/apache/daffodil/processors/DataProcessor.scala b/daffodil-runtime1/src/main/scala/org/apache/daffodil/processors/DataProcessor.scala
index 557a67fca..3528e4378 100644
--- a/daffodil-runtime1/src/main/scala/org/apache/daffodil/processors/DataProcessor.scala
+++ b/daffodil-runtime1/src/main/scala/org/apache/daffodil/processors/DataProcessor.scala
@@ -188,7 +188,7 @@ class DataProcessor private (
this(ssrd, tunables, ExternalVariablesLoader.loadVariables(compilerExternalVars, ssrd, ssrd.originalVariables),
false, None, validationMode, compilerExternalVars)
- private def copy(
+ def copy(
ssrd: SchemaSetRuntimeData = ssrd,
tunables: DaffodilTunables = tunables,
areDebugging : Boolean = areDebugging,