You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/07/04 03:10:14 UTC
[GitHub] [servicecomb-java-chassis] yhs0092 commented on a change in pull
request #1235: [SCB-1291]supportApiOperationMethodOverride
yhs0092 commented on a change in pull request #1235: [SCB-1291]supportApiOperationMethodOverride
URL: https://github.com/apache/servicecomb-java-chassis/pull/1235#discussion_r300214841
##########
File path: providers/provider-pojo/src/main/java/org/apache/servicecomb/provider/pojo/Invoker.java
##########
@@ -158,6 +161,16 @@ public Object invoke(Object proxy, Method method, Object[] args) {
return syncInvoke(invocation, consumerOperation);
}
+ protected String findSwaggerMethodName(Method consumerMethod) {
+ ApiOperation apiOperationAnnotation = consumerMethod.getAnnotation(ApiOperation.class);
+ if (apiOperationAnnotation == null || org.apache.commons.lang3.StringUtils
+ .isEmpty(apiOperationAnnotation.nickname())) {
Review comment:
Hi, since the `org.springframework.util.StringUtils` has been imported, there is no need to use `org.apache.commons.lang3.StringUtils`
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services