Use {@literal xyz} javadoc statement instead of <code>
Simplify if statement