Reputation: 19956
i use eclipse auto Override a method:
@Override
public void draw(Canvas arg0, MapView arg1, boolean arg2) {
// TODO Auto-generated method stub
super.draw(arg0, arg1, arg2);
}
you see ,the parameter is arg0,arg1,arg2,it is hard to read.i think if my eclipse is have mistake, because i think it should give me :
draw(Canvas canvas, MapView mapview, boolean flag)
so my question why my eclipse give me arg0 and so on,how to solve it?
Upvotes: 6
Views: 2447
Reputation: 2960
It doesn't makes any difference. But Its always a good practice to write the code in such a way so that it should be self explanatory.
Imp is the "type" and no. of passing parameters in the method, They should be correct and Which i guess is.
Upvotes: 1
Reputation: 22070
This depends entirely on the fact whether or not Eclipse has the sources of the third party code available on the build path of that project. In your case it only has the binary class file, and can only provide you with the types, as argument names are not part of the binary anymore.
That said, please
to solve this issue in different environments.
Upvotes: 3
Reputation: 28087
If you install "Documentation for Android SDK" via "Android SDK Manager" it will be fixed.
Upvotes: 8
Reputation: 16398
There is nothing wrong. That's Eclipse way of naming variables. But it is recommended to change them to proper names.
Side Note: To rename a variable in your code using Eclipse:
Right click on the variable => Refactor => Rename
Upvotes: 1
Reputation: 471
It doesn't matter what the name of the parameter is. Just make sure that you pass the correct variable / parameter value.
Upvotes: -2