BZ 1145683 - change if-stmt so it can work on solaris 10 - semantics slightly change, but since we don't support JVMs lower than 1.6 that means that effectively this doesn't change functionality