-
-
Save zdi-team/5e57e9b4137cf55f3bca4a24814f4267 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void checkCyclicSubstitution(final String varName, final List<String> priorVariables) { | |
if (!priorVariables.contains(varName)) { | |
return; | |
} | |
final StringBuilder buf = new StringBuilder(BUF_SIZE); | |
buf.append("Infinite loop in property interpolation of "); | |
buf.append(priorVariables.remove(0)); | |
buf.append(": "); | |
appendWithSeparators(buf, priorVariables, "->"); | |
throw new IllegalStateException(buf.toString()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment