Class DuplicateParameterTypeExceptionKt
-
- All Implemented Interfaces:
public final class DuplicateParameterTypeExceptionKt
-
-
Method Summary
Modifier and Type Method Description final static UnitrequireNonAmbiguousParameters(Method method)Checks if a method has multiple parameters with the same type, but no @RequireNameMatch annotation. -
-
Method Detail
-
requireNonAmbiguousParameters
final static Unit requireNonAmbiguousParameters(Method method)
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.
-
-
-
-