Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This operator is used to provide a default fallback value if certain variable is empty or null. If the expression in the middle of the ternary operator is identical to it's its first expression, you should simplify the return statement from the previous example above using ?: operator:

...

Groovy compiler will throw an a compilation error since no version of api.find() does accept collection as argument but only a variable number of Filter objects:

...