javaparser: fix broken when clause
javaparser: fix broken when clause

mshravanreddi/effectivejava,ftomassetti/effectivejava,dushmis/effectivejava,dushmis/effectivejava,ftomassetti/effectivejava,mshravanreddi/effectivejava