mirror of
https://github.com/lightbend/config.git
synced 2025-01-15 23:01:05 +08:00
Add useful toString to ResolveReplacer subtypes
This commit is contained in:
parent
91497e4a1e
commit
9e8532d3f0
@ -142,6 +142,11 @@ final class ConfigDelayedMerge extends AbstractConfigValue implements Unmergeabl
|
||||
throws NotPossibleToResolve {
|
||||
return ConfigDelayedMerge.makeReplacement(context, stack, skipping);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ResolveReplacer(ConfigDelayedMerge substack skipping=" + skipping + ")";
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -69,6 +69,11 @@ final class ConfigDelayedMergeObject extends AbstractConfigObject implements Unm
|
||||
throws NotPossibleToResolve {
|
||||
return ConfigDelayedMerge.makeReplacement(context, stack, skipping);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ResolveReplacer(ConfigDelayedMergeObject substack skipping=" + skipping + ")";
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -28,5 +28,15 @@ abstract class ResolveReplacer {
|
||||
ConfigImpl.trace(context.depth(), "Cycle detected, can't resolve");
|
||||
throw new NotPossibleToResolve(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ResolveReplacer(cycle detector)";
|
||||
}
|
||||
};
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "(" + replacement + ")";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user