Class DuplicateParameterTypeExceptionKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Unit requireNonAmbiguousParameters(Method method) Checks if a method has multiple parameters with the same type, but no @RequireNameMatch annotation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.