Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I disable an eclipse warning in the derived IMarketBillingService.java file?

Tags:

Folks, I have android application that presently has 1 warning, in line 80 of the IMarketBillingService.java file that is part of the in-app purchasing code newly supplied by Google. The warning reads:

The method getInterfaceDescriptor() from the type IMarketBillingService.Stub.Proxy is never used locally

This file is a derived file and may not be edited.

I realize that I may ignore this warning; however, I like to have my projects have zero errors and warnings. I find this is a helpful principle, especially when working with distributed teams.

Can someone tell me how to have eclipse disable/ignore this warning?

Thanks.

like image 400
esilver Avatar asked Apr 04 '11 20:04

esilver


People also ask

How can I see warnings in eclipse?

Click on the small triangle in the upper right corner of the problems view and select "Configure Contents". In that dialog check "Show all items" and uncheck "Use item limits" to show all warnings.


2 Answers

Look out for eclipse patch for Bug ID 220928. You could suppress all warnings from the gen directory once it is in action.

like image 191
pradeepmcl Avatar answered Nov 05 '22 23:11

pradeepmcl


As of Juno, go the the properties of the gen folder and choose to Ignore optional compile problems. See a broader explanation of the bug here.

enter image description here

like image 35
AlikElzin-kilaka Avatar answered Nov 06 '22 01:11

AlikElzin-kilaka