From 8917fc032091d4cb52b28f863dfd9181a6be018c Mon Sep 17 00:00:00 2001 From: Eric K Richardson Date: Fri, 24 Jul 2020 10:10:15 -0700 Subject: [PATCH] Resolves #87 ResolveContext SOF (#88) --- .../scala/org/ekrich/config/impl/ResolveContext.scala | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/sconfig/shared/src/main/scala/org/ekrich/config/impl/ResolveContext.scala b/sconfig/shared/src/main/scala/org/ekrich/config/impl/ResolveContext.scala index 8d40102b..65bb2ddf 100644 --- a/sconfig/shared/src/main/scala/org/ekrich/config/impl/ResolveContext.scala +++ b/sconfig/shared/src/main/scala/org/ekrich/config/impl/ResolveContext.scala @@ -38,13 +38,11 @@ private[impl] final class ResolveContext( // cause a cycle "by side effect" // CAN BE NULL for a full resolve. val restrictToChild: Path, - _resolveStack: ju.List[AbstractConfigValue], - _cycleMarkers: ju.Set[AbstractConfigValue] + // This is used for tracing and debugging and nice error messages; + // contains every node as we call resolve on it. + val resolveStack: ju.List[AbstractConfigValue], + val cycleMarkers: ju.Set[AbstractConfigValue] ) { - // This is used for tracing and debugging and nice error messages; - // contains every node as we call resolve on it. - val resolveStack = ju.Collections.unmodifiableList(_resolveStack) - val cycleMarkers = ju.Collections.unmodifiableSet(_cycleMarkers) def this(options: ConfigResolveOptions, restrictToChild: Path) = { // LinkedHashSet keeps the traversal order which is at least useful