Buggy code:
@ Autowired public void setApplicationContext ( ApplicationContext applicationContext ) { } public void setNumberOfProcessingThreads ( int numberOfProcessingThreads ) { } private boolean bundleHasChanged ( ) { } private synchronized void verifyVehicleResultMappingToCurrentBundle ( ) { } @ PostConstruct public void start ( ) { } @ PreDestroy public void stop ( ) { } @ Override public void handleNycRawLocationRecord ( NycRawLocationRecord record ) { } @ Override public void handleNycTestInferredLocationRecord ( NycTestInferredLocationRecord record ) { } public void handleCcLocationReportRecord ( CcLocationReport message ) { verifyVehicleResultMappingToCurrentBundle ( ) ; if ( ( _bundleManagementService . getCurrentBundleMetadata ( ) ) == null ) { VehicleLocationInferenceServiceImpl . _log . warn ( "Bundle<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>ready<seq2seq4repair_space>or<seq2seq4repair_space>none<seq2seq4repair_space>is<seq2seq4repair_space>loaded;<seq2seq4repair_space>skipping<seq2seq4repair_space>update<seq2seq4repair_space>message." ) ; return ; } NycRawLocationRecord r = new NycRawLocationRecord ( ) ; r . setLatitude ( ( ( message . getLatitude ( ) ) // 1000000.0F ) ) ; r . setLongitude ( ( ( message . getLongitude ( ) ) // 1000000.0F ) ) ; Angle bearing = message . getDirection ( ) ; if ( bearing != null ) { Integer degrees = bearing . getCdeg ( ) ; if ( degrees != null ) r . setBearing ( degrees ) ; } r . setSpeed ( message . getSpeed ( ) ) ; r . setDestinationSignCode ( message . getDestSignCode ( ) . toString ( ) ) ; r . setDeviceId ( message . getManufacturerData ( ) ) ; AgencyAndId vehicleId = new AgencyAndId ( message . getVehicle ( ) . getAgencydesignator ( ) , Long . toString ( message . getVehicle ( ) . getVehicleId ( ) ) ) ; r . setVehicleId ( vehicleId ) ; if ( ! ( StringUtils . isEmpty ( message . getOperatorID ( ) . getDesignator ( ) ) ) ) r . setOperatorId ( message . getOperatorID ( ) . getDesignator ( ) ) ; if ( ! ( StringUtils . isEmpty ( message . getRunID ( ) . getDesignator ( ) ) ) ) r . setRunNumber ( message . getRunID ( ) . getDesignator ( ) ) ; if ( ! ( StringUtils . isEmpty ( message . getRouteID ( ) . getRouteDesignator ( ) ) ) ) r . setRunRouteId ( message . getRouteID ( ) . getRouteDesignator ( ) ) ; EmergencyCodes emergencyCodes = message . getEmergencyCodes ( ) ; if ( emergencyCodes != null ) r . setEmergencyFlag ( true ) ; else r . setEmergencyFlag ( false ) ; tcip_3_0_5_local . CcLocationReport gpsData = message . getLocalCcLocationReport ( ) ; if ( gpsData != null ) { NMEA nemaSentences = gpsData . getNMEA ( ) ; List < String > sentenceStrings = nemaSentences . getSentence ( ) ; for ( String sentence : sentenceStrings ) { if ( sentence . startsWith ( "$GPGGA" ) ) r . setGga ( sentence ) ; if ( sentence . startsWith ( "$GPRMC" ) ) r . setRmc ( sentence ) ; } } DateTime time = VehicleLocationInferenceServiceImpl . XML_DATE_TIME_FORMAT . parseDateTime ( message . getTimeReported ( ) ) ; r . setTime ( time . getMillis ( ) ) ; r . setTimeReceived ( new Date ( ) . getTime ( ) ) ; String RMCSentence = r . getRmc ( ) ; if ( RMCSentence != null ) { String [ ] parts = RMCSentence . split ( "," ) ; if ( ( parts . length ) == 13 ) { String timePart = parts [ 1 ] ; String datePart = parts [ 9 ] ; if ( ( ( timePart . length ( ) ) >= 6 ) && ( ( datePart . length ( ) ) == 6 ) ) { try { DateFormat formatter = new SimpleDateFormat ( "ddMMyy<seq2seq4repair_space>HHmmss" ) ; formatter . setTimeZone ( TimeZone . getTimeZone ( "GMT" ) ) ; Date fromDRU = formatter . parse ( ( ( datePart + "<seq2seq4repair_space>" ) + timePart ) ) ; long differenceInSeconds = ( ( fromDRU . getTime ( ) ) - ( time . getMillis ( ) ) ) // 1000 ; if ( differenceInSeconds > ( 30 * 60 ) ) { <START_BUG> VehicleLocationInferenceServiceImpl . _log . warn ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "Vehicle<seq2seq4repair_space>" + vehicleId ) + "<seq2seq4repair_space>has<seq2seq4repair_space>significant<seq2seq4repair_space>time<seq2seq4repair_space>difference<seq2seq4repair_space>between<seq2seq4repair_space>time<seq2seq4repair_space>from<seq2seq4repair_space>DRU<seq2seq4repair_space>and<seq2seq4repair_space>time<seq2seq4repair_space>from<seq2seq4repair_space>record\n" ) + "Difference<seq2seq4repair_space>in<seq2seq4repair_space>seconds:<seq2seq4repair_space>" ) + differenceInSeconds ) + "\n" ) + "Difference<seq2seq4repair_space>in<seq2seq4repair_space>hours:<seq2seq4repair_space>" ) + ( ( differenceInSeconds // 60 ) // 60 ) ) + "\n" ) + "Raw<seq2seq4repair_space>timestamp:<seq2seq4repair_space>" ) + ( message . getTimeReported ( ) ) ) + "\n" ) + "From<seq2seq4repair_space>RMC:<seq2seq4repair_space>" ) + datePart ) + "<seq2seq4repair_space>" ) + timePart ) ) ; <END_BUG> } } catch ( ParseException e ) { VehicleLocationInferenceServiceImpl . _log . debug ( ( ( ( "Unparseable<seq2seq4repair_space>date:<seq2seq4repair_space>" + datePart ) + "<seq2seq4repair_space>" ) + timePart ) ) ; } } } } _executorService . execute ( new VehicleLocationInferenceServiceImpl . ProcessingTask ( r ) ) ; } @ Override public void setPhaseSeed ( long seed ) { } @ Override public void setCdfSeed ( long seed ) { } @ Override public void resetVehicleLocation ( AgencyAndId vid ) { } @ Override public NycTestInferredLocationRecord getNycTestInferredLocationRecordForVehicle ( AgencyAndId vid ) { } @ Override public List < NycTestInferredLocationRecord > getLatestProcessedVehicleLocationRecords ( ) { } @ Override public void setVehicleStatus ( AgencyAndId vid , boolean enabled ) { } @ Override public List < Particle > getCurrentParticlesForVehicleId ( AgencyAndId vehicleId ) { } @ Override public List < Particle > getCurrentSampledParticlesForVehicleId ( AgencyAndId vehicleId ) { } @ Override public List < JourneyPhaseSummary > getCurrentJourneySummariesForVehicleId ( AgencyAndId vehicleId ) { } @ Override public VehicleLocationDetails getDetailsForVehicleId ( AgencyAndId vehicleId ) { } @ Override public VehicleLocationDetails getBadDetailsForVehicleId ( AgencyAndId vehicleId ) { } @ Override public VehicleLocationDetails getBadDetailsForVehicleId ( AgencyAndId vehicleId , int particleId ) { } @ Override public VehicleLocationDetails getDetailsForVehicleId ( AgencyAndId vehicleId , int particleId ) { } private VehicleLocationDetails findParticle ( VehicleLocationDetails details , int particleId ) { } private VehicleInferenceInstance getInstanceForVehicle ( AgencyAndId vehicleId ) { }

Fix:
VehicleLocationInferenceServiceImpl . _log . debug ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "Vehicle<seq2seq4repair_space>" + vehicleId ) + "<seq2seq4repair_space>has<seq2seq4repair_space>significant<seq2seq4repair_space>time<seq2seq4repair_space>difference<seq2seq4repair_space>between<seq2seq4repair_space>time<seq2seq4repair_space>from<seq2seq4repair_space>DRU<seq2seq4repair_space>and<seq2seq4repair_space>time<seq2seq4repair_space>from<seq2seq4repair_space>record\n" ) + "Difference<seq2seq4repair_space>in<seq2seq4repair_space>seconds:<seq2seq4repair_space>" ) + differenceInSeconds ) + "\n" ) + "Difference<seq2seq4repair_space>in<seq2seq4repair_space>hours:<seq2seq4repair_space>" ) + ( ( differenceInSeconds // 60 ) // 60 ) ) + "\n" ) + "Raw<seq2seq4repair_space>timestamp:<seq2seq4repair_space>" ) + ( message . getTimeReported ( ) ) ) + "\n" ) + "From<seq2seq4repair_space>RMC:<seq2seq4repair_space>" ) + datePart ) + "<seq2seq4repair_space>" ) + timePart ) ) ;