both method from B class do the same thing, they have the same parameters, check it:
you have this
class A {
public Double id(Request<Integer> request) {
return new Integer(0);
}
public Double id(Request<Double> request) {
return new Double(0.0);
}
and you have to do that:
class A {
public Integer id(Request<Integer> request) {
return new Integer(0);
}
public Double id(Request<Double> request) {
return new Double(0.0);
}
good luck