javeme commented on code in PR #601:
URL: 
https://github.com/apache/incubator-hugegraph-toolchain/pull/601#discussion_r1712628763


##########
hugegraph-client/src/main/java/org/apache/hugegraph/serializer/direct/HBaseSerializer.java:
##########
@@ -49,12 +49,12 @@ public HBaseSerializer(HugeClient client, int 
vertexPartitions, int edgePartitio
 
     public byte[] getKeyBytes(GraphElement e) {
         byte[] array = null;
-        if (e.type() == "vertex" && e.id() != null) {
+        if ("vertex".equals(e.type()) && e.id() != null) {

Review Comment:
   can we define a const var for it?



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

Reply via email to