Copilot commented on code in PR #685:
URL:
https://github.com/apache/incubator-hugegraph-toolchain/pull/685#discussion_r2464767879
##########
hugegraph-client/src/main/java/org/apache/hugegraph/client/RestClient.java:
##########
@@ -39,6 +40,7 @@
public class RestClient extends AbstractRestClient {
private static final int SECOND = 1000;
+ private final String version = new VersionManager(this).getCoreVersion();;
Review Comment:
Creating a new VersionManager instance during field initialization may cause
issues since `this` is not fully constructed yet. This could lead to null
pointer exceptions or unexpected behavior. Consider initializing this field in
the constructor after the object is fully constructed, or using a static method
if version retrieval doesn't require instance state.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]