[WFLY-1888] fix checkstyle errors in JDK8 imported classes