mirror of
https://github.com/fankes/moshi.git
synced 2025-10-19 16:09:21 +08:00
Fix support for classes w/ multiple constructors in code gen (#976)
* Fix broken test This test suite doesn't run on CI builds but fails locally since the method was moved * Add multiple constructors test case * Implement TypeName.asTypeBlock() * Make DEFAULT_CONSTRUCTOR_MARKER public * Look up constructor via getDeclaredConstructor with exact param types Resolves #975 * Remove dead code
This commit is contained in:
@@ -47,7 +47,7 @@ import static com.squareup.moshi.Types.supertypeOf;
|
||||
public final class Util {
|
||||
public static final Set<Annotation> NO_ANNOTATIONS = Collections.emptySet();
|
||||
public static final Type[] EMPTY_TYPE_ARRAY = new Type[] {};
|
||||
@Nullable private static final Class<?> DEFAULT_CONSTRUCTOR_MARKER;
|
||||
@Nullable public static final Class<?> DEFAULT_CONSTRUCTOR_MARKER;
|
||||
@Nullable private static final Class<? extends Annotation> METADATA;
|
||||
|
||||
static {
|
||||
|
Reference in New Issue
Block a user