I had one interface:
public interface DefaultInterface<T> {
T doSomething(Integer id, T t);
}
And i have one implementation class:
public class Example implements DefaultInterface{
public ObjectOne doSomething(Integer id, ObjectOne objectOne) {
return new ObjectOne();
}
}
The Interface doesn't recognize implementation class with equal class in Return and parameter
What is wrong with my implementation?