If new Object() truly doesn't have any effects visible other than the valid reference, then it's creation can be moved to after the if statement.
If new Object() truly doesn't have any effects visible other than the valid reference, then it's creation can be moved to after the if statement.