anton-vinogradov commented on code in PR #12889:
URL: https://github.com/apache/ignite/pull/12889#discussion_r2966249104
##########
modules/codegen/src/main/java/org/apache/ignite/internal/MessageSerializerGenerator.java:
##########
@@ -933,19 +911,13 @@ private void returnFalseIfEnumReadFailed(VariableElement
field, String mapperDec
else
readOp = line("%s(%s, reader.readByte())", mapperDecodeCallStmnt,
enumValuesFieldName);
- String methodName = field.getAnnotation(Order.class).method();
-
- if (Objects.equals(methodName, "")) {
- if (type.equals(field.getEnclosingElement()))
- read.add(identedLine("msg.%s = %s;",
field.getSimpleName().toString(), readOp));
- else {
- // Field has to be requested from a super class object.
- read.add(identedLine("((%s)msg).%s = %s;",
- field.getEnclosingElement().getSimpleName(),
field.getSimpleName().toString(), readOp));
- }
+ if (type.equals(field.getEnclosingElement()))
+ read.add(identedLine("msg.%s = %s;",
field.getSimpleName().toString(), readOp));
Review Comment:
What is your proposal?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]