Here you can find the source of arrayEquals(String[] targetMethodParamTypes, String[] paramTypes)
private static boolean arrayEquals(String[] targetMethodParamTypes, String[] paramTypes)
//package com.java2s; //License from project: Apache License public class Main { private static boolean arrayEquals(String[] targetMethodParamTypes, String[] paramTypes) { if (targetMethodParamTypes == null && paramTypes == null) { return true; }/*from ww w .j av a 2 s .c o m*/ if (targetMethodParamTypes == null) { return false; } if (paramTypes == null) { return false; } if (targetMethodParamTypes.length != paramTypes.length) { return false; } int index = 0; for (int i = 0; i < targetMethodParamTypes.length; i++) { if (targetMethodParamTypes[index] == null && paramTypes[index] == null) { continue; } if (targetMethodParamTypes[index] == null) { return false; } if (paramTypes[index] == null) { return false; } if (!targetMethodParamTypes[index].equals(paramTypes[index])) { return false; } } return true; } }