Erase General Type:
The reason for this is because it is related to Generics, List<ClassA> and List<ClassB> . Before java 1.5 there were no Generics, List were declared as is. like a List . This means that you can put anything on the specified list before it is legal to add Object , String , ClassA , Listener , etc. Only to one list. Generalizations have been introduced to indicate the collections they will receive. Here: List<ClassA> , List<String> etc., to play.
However, in order to preserve the obsolete systems of those who created their system pre-dipide time, this will be a problem, Generics is only compilation time, but at runtime it will still be the same base list before.
So, to answer your question, for Eclipse this is the same method signature taking one parameter:
private BasesResponse getResponse(List classX) { ... }
source share