public long getCRC ( ) { PureJavaCrc32 crc = new PureJavaCrc32 ( ) ; for ( Entry < String , byte [ ] > e : super . entrySet ( ) ) { if ( e . getKey ( ) . equals ( "buildinfo.txt" ) || e . getKey ( ) . equals ( "catalog-report.html" ) ) { continue ; } // Hacky way to skip the first line of the autogenerated ddl, which // has a date which changes and causes test failures if ( e . getKey ( ) . equals ( VoltCompiler . AUTOGEN_DDL_FILE_NAME ) ) { byte [ ] ddlbytes = e . getValue ( ) ; int index = 0 ; while ( ddlbytes [ index ] != ' ' ) { index ++ ; } byte [ ] newddlbytes = Arrays . copyOfRange ( ddlbytes , index , ddlbytes . length ) ; crc . update ( e . getKey ( ) . getBytes ( Constants . UTF8ENCODING ) ) ; crc . update ( newddlbytes ) ; } else { crc . update ( e . getKey ( ) . getBytes ( Constants . UTF8ENCODING ) ) ; crc . update ( e . getValue ( ) ) ; } } return crc . getValue ( ) ; }
just replacing one method call with another though .