java switch parsing fixed