All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.immutables.fixture.UnrelatedGenericMethods Maven / Gradle / Ivy

There is a newer version: 2.10.1
Show newest version
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;
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy