Fix the build on JDK7 after 3a216f6 broke it

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>