Commit 85f5cba4 authored by Adam Knapp's avatar Adam Knapp
Browse files

Some harmonization of semantic checks with the C side



Change-Id: I3faaf7d2e878f969e4ecd3332d13e5e633fc9a3f
Signed-off-by: default avatarAdam Knapp <adam.knapp@sigmatechnology.se>
parent e37d480f
......@@ -61,7 +61,7 @@ public final class ProductIdentityHelper {
return null;
}
if ("RnXnn".equals(versionString)) {
if (versionString.contains("RnXnn")) {
return new ProductIdentity();
}
......@@ -161,7 +161,7 @@ public final class ProductIdentityHelper {
}
patchVersion = temp.intValue();
} else {
if (revisionLetter.length() > 1 && majorVersion > 1) {
if (revisionLetter.length() > 2) {
reportSemanticError(location, MessageFormat
.format("More than one letter is not allowed as patch version: {0}", revisionLetter));
return null;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment