Add quotations around invalid dottedVersion value in error message.
This makes it easier to see what the invalid value was, especially in cases where it's a string with spaces.
RELNOTES: None
@@ -130,7 +130,7 @@ public final class DottedVersion implements DottedVersionApi<DottedVersion> {
private static final Pattern COMPONENT_PATTERN =
Pattern.compile("(\\d+)([a-z0-9]*?)?(\\d+)?", Pattern.CASE_INSENSITIVE);
private static final String ILLEGAL_VERSION =
- "Dotted version components must all be of the form \\d+([a-z0-9]*?)?(\\d+)? but got %s";
+ "Dotted version components must all be of the form \\d+([a-z0-9]*?)?(\\d+)? but got '%s'";
private static final String NO_ALPHA_SEQUENCE = null;
private static final Component ZERO_COMPONENT = new Component(0, NO_ALPHA_SEQUENCE, 0, "0");
