Improve in javadoc of generated Future setters.
GITHUB_BREAKING_CHANGES=N/A
@@ -457,7 +457,7 @@ public final class GenInvocationBuildersVisitor
"Future compatible version of {@link #"
+ param.setterName()
+ "("
- + javaType.getType().toJavaTypeString()
+ + stripGenerics(javaType.getType().toJavaTypeString())
+ ")}.",
/* forceMultiline= */ false,
/* wrapAt100Chars= */ true);
@@ -475,6 +475,15 @@ public final class GenInvocationBuildersVisitor
ilb.appendLine("}");
}
+ private static String stripGenerics(String type) {
+ String newType = type;
+ do {
+ type = newType;
+ newType = type.replaceAll("<[^>]*>", "");
+ } while (!newType.equals(type));
+ return newType;
+ }
+
/**
* Logs a warning if two templates in the same soy file mapped to the same UpperCamelCase java
* class name.
