Fokko commented on a change in pull request #874:
URL: https://github.com/apache/avro/pull/874#discussion_r422680754



##########
File path: lang/java/avro/src/main/java/org/apache/avro/reflect/ReflectData.java
##########
@@ -737,6 +737,9 @@ protected Schema createSchema(Type type, Map<String, 
Schema> names) {
 
               AvroName annotatedName = field.getAnnotation(AvroName.class); // 
Rename fields
               String fieldName = (annotatedName != null) ? 
annotatedName.value() : field.getName();
+              if ("this$0".equals(fieldName)) {

Review comment:
       For readability. By splitting out this constant we can name the 
variable: https://en.wikipedia.org/wiki/Magic_number_(programming)




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to