Skip to content

Changes

Summary

  1. test: specify more toJavaIdentifier (details)
  2. test: improve test by checking the toString() of ParameterSpec (details)
  3. test: improve test by checking the toString() of FieldSpec (details)
  4. Qualify types masked by type variables (#657) (details)
Commit 077bd8c26b4b509807bb3af96cc429e34982d927 by bdanglot
test: specify more toJavaIdentifier
The file was modified src/test/java/com/squareup/javapoet/NameAllocatorTest.java (diff)
Commit f1600e5cc03fcc8bc6757fd115e3de89c7dad6fd by bdanglot
test: improve test by checking the toString() of ParameterSpec
implementation
The file was modified src/test/java/com/squareup/javapoet/ParameterSpecTest.java (diff)
Commit 0cbc16df9213d64e6dfe389a2d164ab6f007121b by bdanglot
test: improve test by checking the toString() of FieldSpec
implementation
The file was modified src/test/java/com/squareup/javapoet/FieldSpecTest.java (diff)
Commit b879b58254804b953c6280d05d7882a89ec3b7c8 by jesse
Qualify types masked by type variables (#657)
* Use fully qualified names if a type variable masks a type name, even
if it is in the same package

* Add a makeshift multiset to handle
https://github.com/square/javapoet/pull/657\#discussion_r205514292
The file was modified src/main/java/com/squareup/javapoet/CodeWriter.java (diff)
The file was modified src/main/java/com/squareup/javapoet/MethodSpec.java (diff)
The file was modified src/main/java/com/squareup/javapoet/TypeSpec.java (diff)
The file was modified src/test/java/com/squareup/javapoet/TypeSpecTest.java (diff)