title: java ternary operator can be replaced with Math.max call
body: <p>I have the following code <code>delay = (delay&gt;200) ? delay : 200;</code><br />
  <code>Java</code> issues a warning message <code>Can be replaced with 'Math.max' call</code> for this.<br />
  <a href="https://stackoverflow.com/questions/2103606/is-math-maxa-b-or-abab-faster-in-java">Here</a> I see that <code>Math.max(a, b)</code> is actually the same as <code>(a &gt; b) ? a : b</code> so ternary operator is not worse than <code>Math.max</code><br />
  So why <code>Java</code> issues this warning message if there are no advantages replacing the ternary operator by <code>Math.max</code> method call?</p>