private boolean equal(File[] array1, File[] array2) {
    if (array1.length != array2.length) {
      return false;
    }

    for (final File item : array1) {
      boolean found = false;
      for (final File value : array2) {
        if (equal(item.getAbsoluteFile(), value.getAbsoluteFile())) {
          found = true;
          break;
        }
      }

      if (!found) {
        StringBuilder sb = new StringBuilder();
        sb.append("Didn't find ");
        sb.append(item);
        sb.append(" in ");
        for (final File file : array2) {
          sb.append(file);
          sb.append(" ");
        }
        System.out.println(sb);
        return false;
      }
    }

    return true;
  }
Returns whether or not two <code>File</code> arrays specify the same files.
geode-core/src/main/java/org/apache/geode/internal/cache/xmlcache/RegionAttributesCreation.java