Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 66cc7f2

Browse files
committed
[Java] Improve validation of valueRef on fields.
1 parent c588614 commit 66cc7f2

File tree

1 file changed

+2
-2
lines changed
  • sbe-tool/src/main/java/uk/co/real_logic/sbe/xml

1 file changed

+2
-2
lines changed

sbe-tool/src/main/java/uk/co/real_logic/sbe/xml/Field.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,14 @@ public void validate(final Node node)
110110
final String valueRefType = valueRef.substring(0, periodIndex);
111111
if (!valueRefType.equals(type.name()))
112112
{
113-
handleError(node, "valueRef Enum type not found: " + valueRefType);
113+
handleError(node, "valueRef for Enum name not found: " + valueRefType);
114114
}
115115

116116
final String validValueName = valueRef.substring(periodIndex + 1);
117117
final EnumType enumType = (EnumType)type;
118118
if (null == enumType.getValidValue(validValueName))
119119
{
120-
handleError(node, "valueRef Valid value name not found: " + validValueName);
120+
handleError(node, "valueRef for validValue name not found: " + validValueName);
121121
}
122122
}
123123
}

0 commit comments

Comments
 (0)