The generated AutoValueGson_FooTypeAdapterFactory is public, although it seems that it must be package-private and only be used by FooTypeAdapterFactory#create.
Factory base class code:
@GsonTypeAdapterFactory
public abstract class FooTypeAdapterFactory implements TypeAdapterFactory {
// If I understand correctly, the clients are suppossed to use this
// public and documented method, and not have direct access to
// the generated class. The readme confirms such expectation.
public static TypeAdapterFactory create() {
return new AutoValueGson_FooTypeAdapterFactory();
}
}
The generated
AutoValueGson_FooTypeAdapterFactory
is public, although it seems that it must be package-private and only be used byFooTypeAdapterFactory#create
.Factory base class code:
AutoValueGson version: 1.0.0