tiny fix to how we generate typetoken objects
if the type is a simple class we shouldn't generate a subclass, our regular expression was a little too restrictive.  This was a preexisting issue, but our recent change to always use fully qualified type names exacerbated it.
GITHUB_BREAKING_CHANGES=none
@@ -440,7 +440,7 @@ public final class GenInvocationBuildersVisitor
"?".equals(genericType)
// TODO(user): this should probably be a wildcard type
? "com.google.common.reflect.TypeToken.of(java.lang.Object.class)"
- : (genericType.matches("\\w+")
+ : (genericType.matches("(\\.|\\w)+")
? "com.google.common.reflect.TypeToken.of(" + genericType + ".class" + ")"
: "new com.google.common.reflect.TypeToken<" + genericType + ">() {}");
ilb.appendLine(
