mValidHosts is a sync set. Collections.synchronizedSet is returning sync set. I will update initValidList method to remove extra sync.