You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hugegraph.apache.org by GitBox <gi...@apache.org> on 2022/10/26 07:10:21 UTC

[GitHub] [incubator-hugegraph] imbajin commented on a diff in pull request #1990: refact: clean some code before release

imbajin commented on code in PR #1990:
URL: https://github.com/apache/incubator-hugegraph/pull/1990#discussion_r1005299999


##########
hugegraph-test/src/main/java/com/baidu/hugegraph/unit/core/AnalyzerTest.java:
##########
@@ -216,11 +217,7 @@ public void testIKAnalyzer() {
     }
 
     private static Set<String> setOf(String... elems) {
-        Set<String> result = new HashSet<>();
-        for (String elem : elems) {
-            result.add(elem);
-        }
-        return result;
+        return new HashSet<>(Arrays.asList(elems));

Review Comment:
   Thanks, and one question is which modules/packages did you check this time? (or u checked all modules?)



-- 
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: commits-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org