HBASE-12695 JDK 1.8 compilation broken

Signed-off-by: stack <stack@apache.org>