pkuwm commented on a change in pull request #1066:
URL: https://github.com/apache/helix/pull/1066#discussion_r498743565



##########
File path: helix-core/src/main/java/org/apache/helix/HelixProperty.java
##########
@@ -148,7 +154,12 @@ public String toString() {
     }
   }
 
-  private Stat _stat;
+  protected Stat _stat;
+
+  public HelixProperty() {
+    _record = DEFAULT_ZNRECORD;
+    _stat = DEFAULT_STAT;
+  }

Review comment:
       My first impression was these two constructors are kind of similar and 
it's not really clear that `super(SessionAwareZNRecord, id)` would 100% call 
`HelixProperty(SessionAwareZNRecord record, String id)` but not 
`HelixProperty(ZNRecord record, String id)`.
   
   Tested. It's working. Good idea. We can still keep the original logic in 
`Message`.




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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to