Polished SMARTS Java code.