From 94dda5f9cf6bd6d62ff62af236ebbecc4b17923f Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sat, 27 Dec 2014 16:41:47 -0500 Subject: [PATCH] If not allowing unresolved, optimize resolve status computation for List --- .../main/java/com/typesafe/config/impl/SimpleConfigList.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/src/main/java/com/typesafe/config/impl/SimpleConfigList.java b/config/src/main/java/com/typesafe/config/impl/SimpleConfigList.java index ec5a4b98..2db8396e 100644 --- a/config/src/main/java/com/typesafe/config/impl/SimpleConfigList.java +++ b/config/src/main/java/com/typesafe/config/impl/SimpleConfigList.java @@ -125,8 +125,7 @@ final class SimpleConfigList extends AbstractConfigValue implements ConfigList, throws NotPossibleToResolve { return context.resolve(v); } - - }, null /* don't force resolve status -- could be allowing unresolved */); + }, context.options().getAllowUnresolved() ? null : ResolveStatus.RESOLVED); } catch (NotPossibleToResolve e) { throw e; } catch (RuntimeException e) {