Add useful toString to ResolveReplacer subtypes

This commit is contained in:
Havoc Pennington 2014-07-04 22:16:25 -04:00
parent 91497e4a1e
commit 9e8532d3f0
3 changed files with 20 additions and 0 deletions

View File

@ -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 + ")";
}
};
}

View File

@ -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 + ")";
}
};
}

View File

@ -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 + ")";
}
}