org.immutables.fixture.UnrelatedGenericMethods Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of value-fixture Show documentation
Show all versions of value-fixture Show documentation
Module that contains all tests for the code generation capability
package org.immutables.fixture;
import org.immutables.value.Value;
@Value.Immutable
public abstract class UnrelatedGenericMethods {
public abstract String a();
// should not be compilation error, not an accessor, can have type parameters
public T create() {
return null;
}
@Value.Immutable
interface Abb {
@Value.Default
default int x() {
return 1;
}
// should not be compilation error, not an accessor, can have type parameters
default T create() {
return null;
}
}
}