-
I've been using the toString method in my tests to check that my code generation is working properly.
For example, I have some code that formats comma-separated lists like this:
CodeBlock.Builde…
-
First of all, thanks a lot for forking the JavaPoet project and implementing some of its missing functionality!
In case this fork is intended to be used by the public (and its main purpose is not f…
-
In MethodSpec.Builder, I have...
`builder.addAnnotation(Value.Lazy.class);`
In JavaFile.Builder, I have..
```
JavaFile.builder(..)
.addStaticImport(Value.class, "Immutable"…
-
JSR 305 is a broken non-standard that will slowly die and which doesn't work with Kotlin by default. Rather than prolong its life, let's flip our role and become a harbinger of its death.
-
Some recent PR's landing in dagger seem to be clearing the path to KSP. Obviously they have been publicly vocal about the intent to support that. Similar to the ["why KSP doc"](https://github.com/goog…
-
My backend has a weird model defined. I can't really do anything about it. Moshi codegen breaks though.
```
@JsonClass(generateAdapter = true)
data class UserWrapper(
var id: Int? = 0,
…
-
The README says "Note that interface methods must always be `PUBLIC ABSTRACT`..."
This is untrue of static methods on interfaces, which must be `PUBLIC STATIC`.
Though kind of obvious in hinds…
-
WildcardTypeName [ignores its annotations when emitting.](https://github.com/square/javapoet/blob/master/src/main/java/com/squareup/javapoet/WildcardTypeName.java#L64-L71) For example, consider the fo…
-
I want to generate a lambda inside a statement, that itself uses multiple statements, but JavaPoet does not allow nesting of statements (for reasons that make sense, outside of lambdas). Do you think …
-
I have the following class hierarchy:
```
public interface ASuperInterface {
void test(A a);
}
public interface AnInterface extends ASuperInterface {
void test();
}
```
Calling `MoreE…