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 2020/07/06 11:01:00 UTC

[GitHub] [servicecomb-java-chassis] yhs0092 commented on a change in pull request #1865: [SCB-2031] Fix mapping problem between pojo consumer method and provider swagger operation

yhs0092 commented on a change in pull request #1865:
URL: https://github.com/apache/servicecomb-java-chassis/pull/1865#discussion_r450145541



##########
File path: swagger/swagger-invocation/invocation-core/src/main/java/org/apache/servicecomb/swagger/engine/SwaggerConsumer.java
##########
@@ -34,14 +35,14 @@ public void setConsumerIntf(Class<?> consumerIntf) {
   }
 
   public void addOperation(SwaggerConsumerOperation op) {
-    operations.put(op.getSchemaOperationId(), op);
+    operations.put(op.getConsumerMethod(), op);
   }
 
-  public SwaggerConsumerOperation findOperation(String consumerMethodName) {
-    return operations.get(consumerMethodName);
+  public SwaggerConsumerOperation findOperation(Method consumerMethod) {

Review comment:
       Done. Please review 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.

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