Skip to content

Commit f4484ea

Browse files
author
Todd L. Montgomery
committed
fix aeron-io#129 by removing addition of acting version check to array length
1 parent a9e3da1 commit f4484ea

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

main/java/uk/co/real_logic/sbe/generation/cpp98/Cpp98Generator.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -925,11 +925,9 @@ private CharSequence generateArrayProperty(final String containingClassName,
925925
"\n" +
926926
indent + " static int %1$sLength(void)\n" +
927927
indent + " {\n" +
928-
"%2$s" +
929-
indent + " return %3$d;\n" +
928+
indent + " return %2$d;\n" +
930929
indent + " }\n\n",
931930
propertyName,
932-
generateArrayFieldNotPresentCondition(token.version(), indent),
933931
Integer.valueOf(token.arrayLength())
934932
));
935933

0 commit comments

Comments
 (0)