Solve warnings in Eclipse