You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: common/common-protobuf/src/main/java/org/apache/servicecomb/codec/protobuf/schema/SchemaToProtoGenerator.java
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@
22
22
importjava.nio.charset.StandardCharsets;
23
23
importjava.util.ArrayList;
24
24
importjava.util.Collections;
25
+
importjava.util.Comparator;
25
26
importjava.util.HashMap;
26
27
importjava.util.HashSet;
27
28
importjava.util.List;
@@ -354,8 +355,10 @@ public void createMessage(Schema<?> schema) {
Copy file name to clipboardExpand all lines: common/common-protobuf/src/test/java/org/apache/servicecomb/codec/protobuf/schema/TestSchemaToProtoGenerator.java
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -154,8 +154,8 @@ public void test_springmvc_model_schema_correct() {
154
154
package test.model;
155
155
156
156
message Model {
157
-
string name = 1;
158
-
sint32 age = 2;
157
+
sint32 age = 1;
158
+
string name = 2;
159
159
}
160
160
161
161
//@WrapProperty
@@ -175,8 +175,8 @@ public void test_springmvc_model_schema_correct() {
175
175
package test.model;
176
176
177
177
message Model {
178
-
string name = 1;
179
-
sint32 age = 2;
178
+
sint32 age = 1;
179
+
string name = 2;
180
180
}
181
181
182
182
//@WrapProperty
@@ -220,15 +220,15 @@ public void testNestedModelCorrect() {
220
220
}
221
221
222
222
message DeptInfo {
223
-
string name = 1;
224
-
string code = 2;
223
+
string code = 1;
224
+
string name = 2;
225
225
repeated ScoreInfo scores = 3;
226
226
}
227
227
228
228
message UserInfo {
229
-
repeated DeptInfo subDeptInfos = 1;
230
-
repeated MapString extraInfos = 2;
231
-
repeated ListListString nestedLists = 3;
229
+
repeated MapString extraInfos = 1;
230
+
repeated ListListString nestedLists = 2;
231
+
repeated DeptInfo subDeptInfos = 3;
232
232
}
233
233
234
234
//@WrapProperty
@@ -267,8 +267,8 @@ public void testListMapTypeCorrect() {
0 commit comments