Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0.3-alpha
-
None
-
Reviewed
Description
Now the compare code is :
return a1.getApplicationId().getId() - a2.getApplicationId().getId();
Will be replaced with :
return a1.getApplicationId().compareTo(a2.getApplicationId());
This will bring some benefits:
1,leave applicationId compare logic to ApplicationId class;
2,In future's HA mode,cluster time stamp may change,ApplicationId class already takes care of this condition.