Revert "fix errors on latest eclipse."

This reverts commit 1c58462a64a6c80933bba529e6e3c831c5f7e637.
avoid errors on Eclipse Luna.