Skip to content

Commit 67fecec

Browse files
committed
fix: recursively write generics on methodInvocationExpr to account for fully qualified types
1 parent 7c759a9 commit 67fecec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gapic-generator-java/src/main/java/com/google/api/generator/engine/writer/JavaWriterVisitor.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,8 @@ public void visit(MethodInvocationExpr methodInvocationExpr) {
362362
leftAngle();
363363
int numGenerics = methodInvocationExpr.generics().size();
364364
for (int i = 0; i < numGenerics; i++) {
365-
buffer.append(methodInvocationExpr.generics().get(i).name());
365+
Reference r = methodInvocationExpr.generics().get(i);
366+
r.accept(this);
366367
if (i < numGenerics - 1) {
367368
buffer.append(COMMA);
368369
space();

0 commit comments

Comments
 (0)