Copilot commented on code in PR #2969:
URL: https://github.com/apache/hugegraph/pull/2969#discussion_r2938111908


##########
hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/profile/GraphsAPI.java:
##########
@@ -154,12 +161,15 @@ public void drop(@Context GraphManager manager,
     @Produces(APPLICATION_JSON_WITH_CHARSET)
     @RolesAllowed({"analyst"})
     public Object reload(@Context GraphManager manager,
+                         @Parameter(
+                                 description = "The action map containing 
'action' key with value" +
+                                               " 'reload'")

Review Comment:
   The @Parameter(description=...) line here is likely over Checkstyle's 
100-character LineLength limit due to indentation + the long string. Please 
wrap/split the description string across additional lines (or shorten it) so 
this file passes Checkstyle.
   



##########
hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/metrics/MetricsAPI.java:
##########
@@ -207,7 +210,9 @@ public String all(@Context GraphManager manager,
     @Produces(APPLICATION_TEXT_WITH_CHARSET)
     @RolesAllowed({"space", "$owner= $action=metrics_read"})
     @Operation(summary = "get all statistics metrics")
-    public String statistics(@QueryParam("type") String type) {
+    public String statistics(@Parameter(description = "Output format type: 
'json' for JSON format, " +
+                                               "other values for Prometheus 
format")
+                             @QueryParam("type") String type) {

Review Comment:
   This method signature line is likely to exceed the repository's 
100-character Checkstyle LineLength limit (style/checkstyle.xml). Please wrap 
the `@Parameter` annotation onto its own line(s) (consistent with other 
endpoints in this class) so the file passes Checkstyle.
   



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