Refactor: Simplify RelevancyEvaluator

  • Simplified the doGetSupportingData method by using a more concise stream operation.
  • Replaced explicit null checks and instanceof checks with filter operations for clarity.
  • Changed to map the content directly to String using String.class::cast for better type safety.
  • Simplified the evaluate method by using a ternary operator for setting the passing and score variables.
  • Removed unnecessary variable initializations to improve code readability and maintainability.

Comment From: markpollack

I don't follow the commit that modifies the evaluate but have updated the doGetSupportingData method but kept he use of System.lineSeparator. thanks.

merged in 0f52ca510fe50ea0c1c9ca4c9ed8a162f751d945