8305207: Calendar.aggregateStamp(int, int) return value can be simplified

Reviewed-by: naoto, rriggs, iris
This commit is contained in:
Justin Lu 2023-04-20 21:20:08 +00:00 committed by Naoto Sato
parent 174c1a6d53
commit ffb2494de4

@ -2630,7 +2630,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
if (stamp_a == UNSET || stamp_b == UNSET) {
return UNSET;
}
return (stamp_a > stamp_b) ? stamp_a : stamp_b;
return Math.max(stamp_a, stamp_b);
}
/**