requireNonAmbiguousParameters

Checks if a method has multiple parameters with the same type, but no @RequireNameMatch annotation. This prevents any issue when the developer forgets to add @RequireNameMatch when parameters have the same type and the system is unable to determine the correct parameter order.

Parameters

method

The method to check.

Throws

If the method has multiple parameters with the same type.