gn2bp: move target.type check into _is_java_target

Cleanup -- makes the code more readable.

Test: //components/cronet/android:cronet
Change-Id: I4bb68137ac21f6204143c4fb9c74e57e9db8c5d7
1 file changed