public boolean canUseCachedProjectData(){
  if (!myGradlePluginVersion.equals(GRADLE_PLUGIN_RECOMMENDED_VERSION)) {
    return false;
  }
  for (  Map.Entry<String,byte[]> entry : myFileChecksums.entrySet()) {
    File file=new File(entry.getKey());
    if (!file.isAbsolute()) {
      file=new File(myRootDirPath,file.getPath());
    }
    try {
      if (!Arrays.equals(entry.getValue(),createChecksum(file))) {
        return false;
      }
    }
 catch (    IOException e) {
      return false;
    }
  }
  return true;
}

public boolean canUseCachedProjectData ( ) { if ( ! myGradlePluginVersion . equals ( GRADLE_PLUGIN_RECOMMENDED_VERSION ) ) { return false ; } for ( Map . Entry < String , byte [ ] > entry : myFileChecksums . entrySet ( ) ) { File file = new File ( entry . getKey ( ) ) ; if ( ! file . isAbsolute ( ) ) { file = new File ( myRootDirPath , file . getPath ( ) ) ; } try { if ( ! Arrays . equals ( entry . getValue ( ) , createChecksum ( file ) ) ) { return false ; } } catch ( IOException e ) { return false ; } } return true ; }
verifies that whether the persisted external project data can be used to create the project or not . < p / > this validates that all the files that the external project data depends on , still have the same content checksum and that the gradle model version is still the same .
