Otherwise we crash with an exception attempting to create an adapter
for an enclosed type that has a type parameter.
I ran into this looking for a test case for issue 615.
https://github.com/square/moshi/issues/615
AnnotationSpec implements equals() in the way we need, but
AnnotationMirror doesn't. As a consequence this fixes a problem
where we were generating redundant adapters.
Closes: https://github.com/square/moshi/issues/563
* Update to kotlinpoet 1.0.0-RC1
* Move to WildcardTypeName.STAR
* simpleNames() function -> simpleNames property
* packageName() fun -> packageName property
* simpleName() fun -> simpleName property
* Check if bounds are empty for TypeVariableName. If so, use no-bounds creator
* Use new parameterizedBy/plusParameter API where appropriate
* Fix companion object names not being resolved
This slipped through the cracks before the release
Fixes#546
* Add braces on the else clause for symmetry