Getting rid of Eclipse warnings