[docs] Fixing the Java code for passing style checking.