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

 ##########
 File path: 
swagger/swagger-generator/generator-core/src/test/java/org/apache/servicecomb/swagger/generator/core/TestParamUtils.java
 ##########
 @@ -95,4 +105,49 @@ public void setParameterTypeByTypeOnComplexType() {
           + "param name is [testName]", e.getMessage());
     }
   }
+
+  private static class AllTypeTest1 {
+    TestType1 t1;
+
+    List<TestType1> t2;
+
+    Map<String, TestType1> t3;
+
+    TestType1[] t4;
+  }
+
+  private static class AllTypeTest2 {
+    TestType2 t1;
+
+    List<TestType2> t2;
+
+    Map<String, TestType2> t3;
+
+    TestType2[] t4;
+  }
+
+  @Test
+  public void testAddDefinitions() {
+    Field[] fields1 = AllTypeTest1.class.getDeclaredFields();
+    Field[] fields2 = AllTypeTest2.class.getDeclaredFields();
+    for (int i = 0; i < fields1.length; i++) {
+      for (int j = 0; j < fields2.length; j++) {
+        if(fields1[i].isSynthetic()||fields2[j].isSynthetic()){
 
 Review comment:
   This line of code is not formatted. 

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to