9687d77b5a
Motivation: There is no need already use synchronized when validate the args of the methods. Modifications: First validate arguments and then use synchronized Result: Less code executed in synchronized block.