I'm trying to implement a getter method to get the id of an object: this method should be declared as "public int getId()".
The problem is that the object class extends the Thread class, that already have a "int getId()" method.
When i try to compile i get this error: The return type is incompatible with Thread.getId().
Is there a way to solve this problem (maybe with some kind of annotation)?