Skip to content

Commit

Permalink
Merge branch '7.2.x' into 7.3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
rayokota committed Mar 15, 2023
2 parents 5fd5380 + 3306852 commit ba69f1a
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 @@ -1376,7 +1376,7 @@ private static Map<String, OptionElement> mergeOptions(List<OptionElement> optio
// which may not be using the alternative aggregate syntax.
return options.stream()
.collect(Collectors.toMap(
OptionElement::getName,
o -> o.getName().startsWith(".") ? o.getName().substring(1) : o.getName(),
o -> transform(o),
ProtobufSchema::merge));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ public void testComplexCustomOptions() {
+ "option java_multiple_files = true;\n"
+ "option (com.custom.map).subject = 'user-value';\n"
+ "option (com.custom.map).compatibility_mode = FULL;\n"
+ "option (confluent.file_meta).doc = \"file meta\";\n"
+ "option (.confluent.file_meta).doc = \"file meta\";\n"
+ "option (confluent.file_meta).params = [\n"
+ " {\n"
+ " value: \"my_value\",\n"
Expand All @@ -458,7 +458,7 @@ public void testComplexCustomOptions() {
+ "option java_multiple_files = true;\n"
+ "option (com.custom.map).subject = \"user-value\";\n"
+ "option (com.custom.map).compatibility_mode = FULL;\n"
+ "option (confluent.file_meta).doc = \"file meta\";\n"
+ "option (.confluent.file_meta).doc = \"file meta\";\n"
+ "option (confluent.file_meta).params = [{\n"
+ " value: \"my_value\",\n"
+ " key: \"my_key\"\n"
Expand Down

0 comments on commit ba69f1a

Please sign in to comment.