Added a quick workaround for the warning from Groovy on java 5.