private boolean areSwcFileChecksumsEqual(){
  if (swcFileChecksums == null) {
    if (Trace.swcChecksum) {
      Trace.trace("areSwcFileChecksumsEqual: no file checksum map, not equal");
    }
    return false;
  }
  Map<String,VirtualFile> swcFiles=swcContext.getFiles();
  Set<Map.Entry<String,Long>> dataSet=swcFileChecksums.entrySet();
  if (swcFiles.size() < dataSet.size()) {
    if (Trace.swcChecksum) {
      Trace.trace("areSwcFileChecksumsEqual: less files than before, not equal");
    }
    return false;
  }
  for (  Map.Entry<String,Long> entry : dataSet) {
    String filename=entry.getKey();
    Long dataFileLastModified=entry.getValue();
    Long swcFileLastModified=null;
    VirtualFile swcFile=swcFiles.get(filename);
    if (swcFile != null) {
      swcFileLastModified=new Long(swcFile.getLastModified());
    }
    if (!dataFileLastModified.equals(swcFileLastModified)) {
      if (Trace.swcChecksum) {
        Trace.trace("areSwcFileChecksumsEqual: not equal");
        Trace.trace("filename = " + filename);
        Trace.trace("last modified1 = " + dataFileLastModified);
        Trace.trace("last modified2 = " + swcFileLastModified);
      }
      return false;
    }
  }
  if (Trace.swcChecksum) {
    Trace.trace("areSwcFileChecksumsEqual: equal");
  }
  return true;
}

private boolean areSwcFileChecksumsEqual ( ) { if ( swcFileChecksums == null ) { if ( Trace . swcChecksum ) { Trace . trace ( "areSwcFileChecksumsEqual: no file checksum map, not equal" ) ; } return false ; } Map < String , VirtualFile > swcFiles = swcContext . getFiles ( ) ; Set < Map . Entry < String , Long > > dataSet = swcFileChecksums . entrySet ( ) ; if ( swcFiles . size ( ) < dataSet . size ( ) ) { if ( Trace . swcChecksum ) { Trace . trace ( "areSwcFileChecksumsEqual: less files than before, not equal" ) ; } return false ; } for ( Map . Entry < String , Long > entry : dataSet ) { String filename = entry . getKey ( ) ; Long dataFileLastModified = entry . getValue ( ) ; Long swcFileLastModified = null ; VirtualFile swcFile = swcFiles . get ( filename ) ; if ( swcFile != null ) { swcFileLastModified = new Long ( swcFile . getLastModified ( ) ) ; } if ( ! dataFileLastModified . equals ( swcFileLastModified ) ) { if ( Trace . swcChecksum ) { Trace . trace ( "areSwcFileChecksumsEqual: not equal" ) ; Trace . trace ( "filename = " + filename ) ; Trace . trace ( "last modified1 = " + dataFileLastModified ) ; Trace . trace ( "last modified2 = " + swcFileLastModified ) ; } return false ; } } if ( Trace . swcChecksum ) { Trace . trace ( "areSwcFileChecksumsEqual: equal" ) ; } return true ; }
test if the files in the compiler swc context have changed since the last compile .
