system/src/sc/lang/java/ModelUtil.java
public static boolean sameMethodParameters(Object m1, Object m2) {
      if (m1 == null)
         return m2 == null;

      if (m2 == null)
         return false;

      Object[] c1Types = ModelUtil.getParameterTypes(m1);
      Object[] c2Types = ModelUtil.getParameterTypes(m2);
      if (!sameParameters(c1Types, c2Types, false, null))
         return false;
      Object encl1Type = ModelUtil.getEnclosingType(m1);
      Object encl2Type = ModelUtil.getEnclosingType(m2);
      if (!ModelUtil.sameTypes(encl1Type, encl2Type))
         return false;
      return ModelUtil.isVarArgs(m1) == ModelUtil.isVarArgs(m2);
   }
/*
    * Checks if the parameters in the two methods match.  First call methodNamesMatch if you want to really compare
    * that they are the same methods.
    */
Checks if the parameters in the two methods match.  First call methodNamesMatch if you want to really compare
that they are the same methods.
Checks if the parameters in the two methods match . First call methodNamesMatch if you want to really compare that they are the same methods .
public static boolean sameMethodParameters(Object m1, Object m2) {
      if (m1 == null)
         return m2 == null;
      if (m2 == null)
         return false;
      Object[] c1Types = ModelUtil.getParameterTypes(m1);
      Object[] c2Types = ModelUtil.getParameterTypes(m2);
      if (!sameParameters(c1Types, c2Types, false, null))
         return false;
      Object encl1Type = ModelUtil.getEnclosingType(m1);
      Object encl2Type = ModelUtil.getEnclosingType(m2);
      if (!ModelUtil.sameTypes(encl1Type, encl2Type))
         return false;
      return ModelUtil.isVarArgs(m1) == ModelUtil.isVarArgs(m2);
   }
public static boolean sameMethodParameters ( Object m1 , Object m2 ) { if ( m1 == null ) return m2 == null ; if ( m2 == null ) return false ; Object [ ] c1Types = ModelUtil . getParameterTypes ( m1 ) ; Object [ ] c2Types = ModelUtil . getParameterTypes ( m2 ) ; if ( ! sameParameters ( c1Types , c2Types , false , null ) ) return false ; Object encl1Type = ModelUtil . getEnclosingType ( m1 ) ; Object encl2Type = ModelUtil . getEnclosingType ( m2 ) ; if ( ! ModelUtil . sameTypes ( encl1Type , encl2Type ) ) return false ; return ModelUtil . isVarArgs ( m1 ) == ModelUtil . isVarArgs ( m2 ) ; }
Checks if the parameters in the two methods match.
Checks if the parameters in the two methods match .