Added assertion. There should be either space symbol after prefix (e.g., //ABSENT: A) or no symbols at all (e.g. //RUNTIME).

This commit is contained in:
Evgeny Gerashchenko
2015-04-03 22:04:42 +03:00
parent 91bb789758
commit 7b77ce58a5
2 changed files with 6 additions and 3 deletions
@@ -117,6 +117,9 @@ public final class InTextDirectivesUtils {
Character.isWhitespace(prefix.charAt(prefix.length() - 1))) {
result.add(noPrefixLine.trim());
break;
} else {
throw new AssertionError(
"Line starts with prefix \"" + prefix + "\", but doesn't have space symbol after it: " + line);
}
}
}