Skip to content

Commit

Permalink
Implement review
Browse files Browse the repository at this point in the history
  • Loading branch information
Constantin Muraru committed Aug 27, 2017
1 parent c389d6b commit d694f20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private <T> Builder<? extends Builder<?, GroupBuilder<T>>, GroupBuilder<T>> addR
return builder
.group(Type.Repetition.REQUIRED).as(OriginalType.LIST)
.group(Type.Repetition.REPEATED)
.primitive(primitiveType, Type.Repetition.OPTIONAL).as(originalType)
.primitive(primitiveType, Type.Repetition.REQUIRED).as(originalType)
.named("element")
.named("list");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public void testConvertRepetition() throws Exception {
" required int32 requiredPrimitive = 2;\n" +
" required group repeatedPrimitive (LIST) = 3 {\n" +
" repeated group list {\n" +
" optional int32 element;\n" +
" required int32 element;\n" +
" }\n" +
" }\n" +
" optional group optionalMessage = 7 {\n" +
Expand All @@ -150,7 +150,7 @@ public void testProto3ConvertRepetition() throws Exception {
" optional int32 optionalPrimitive = 1;\n" +
" required group repeatedPrimitive (LIST) = 3 {\n" +
" repeated group list {\n" +
" optional int32 element;\n" +
" required int32 element;\n" +
" }\n" +
" }\n" +
" optional group optionalMessage = 7 {\n" +
Expand Down

0 comments on commit d694f20

Please sign in to comment.