Use Boolean.TRUE.equals(x) instead of x==Boolean.TRUE
Merge pull request #1128 from aledsage/fix/boolean-equals-comparison

Use Boolean.TRUE.equals(x) instead of x==Boolean.TRUE