I't first time i've occourred in this "strange" situation. I need to create two different constructor for my class:
public OpponentListAdapter(Context c, ArrayList<MyCustomObject> l){}
and
public OpponentListAdapter(Context c, ArrayList<String> l){}
because depending by type of generics of ArrayList, i need to perform different actions. But i have this error:
Method OpponentListAdapter(Context, ArrayList) has the same erasure >OpponentListAdapter(Context, ArrayList) as another method in type OpponentListAdapter
What's wrong? Maybe the solution it's simple, but for now, i can't find nothing good!