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/29 06:56:50 UTC

[GitHub] [servicecomb-java-chassis] wujimin commented on a change in pull request #1277: [SCB-1392]Mutiple classes have the same APIModel,and class will occur…

wujimin commented on a change in pull request #1277: [SCB-1392]Mutiple classes have the same APIModel,and class will occur…
URL: https://github.com/apache/servicecomb-java-chassis/pull/1277#discussion_r308078113
 
 

 ##########
 File path: swagger/swagger-generator/generator-core/src/main/java/org/apache/servicecomb/swagger/generator/core/utils/ParamUtils.java
 ##########
 @@ -113,12 +111,16 @@ public static BodyParameter createBodyParameter(Swagger swagger, String paramNam
   }
 
   public static void addDefinitions(Swagger swagger, Type paramType) {
+    if (swagger.getDefinitions() == null) {
+      ModelResolverExt.refreshClassNameMap();
 
 Review comment:
   this makes swagger generator mechanism from thread safe to not thread safe

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