Description
ReplayPosition.comparator does some unnecessary boxing (and auto-boxing) from primitive int and long to Integer and Long, just to perform a basic numeric comparison. We can just inline the comparison and avoid the conversion to Integer/Long instances. The ReplayPosition.equals() simple looks at the primitive values, so this change would just make the code more parallel.