Remove build warning from collections

I looked in bukkit 1.8 javadocs and made changes to make this build clean. Hope i do not break something.