Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Commit

Permalink
add issue # for singular params to use ResourceNameTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
andreamlin committed Jul 3, 2018
1 parent a563cae commit f3f699c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ public static boolean hasAnyRepeatedResourceNameParameter(FlatteningConfig flatt
// Used in Java to prevent generating a flattened method with List<ResourceName> as a parameter
// because that has the same type erasure as the version of the flattened method with
// List<String> as a parameter.

// TODO(gapic-generator issue #2137) Only use raw String type for repeated params
// not for singular params in the same flattened method.
return flatteningGroup
.getFlattenedFieldConfigs()
.values()
Expand Down

0 comments on commit f3f699c

Please sign in to comment.