Add java 8 warning.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>