Buggy code:
@ TargetApi ( 5 ) public class BeaconService extends Service { public static final String TAG = "BeaconService" ; private Map < Region , RangeState > rangedRegionState = new HashMap < Region , RangeState > ( ) ; private Map < Region , MonitorState > monitoredRegionState = new HashMap < Region , MonitorState > ( ) ; private BluetoothAdapter bluetoothAdapter ; private HashSet < Beacon > trackedBeacons ; int trackedBeaconsPacketCount ; private Handler handler = new Handler ( ) ; private int bindCount = 0 ; private BluetoothCrashResolver bluetoothCrashResolver ; private boolean scanCyclerStarted = false ; private boolean scanningEnabled = false ; private DistanceCalculator defaultDistanceCalculator = null ; private List < BeaconParser > beaconParsers ; private CycledLeScanner mCycledScanner ; private boolean mBackgroundFlag = false ; private List < Beacon > simulatedScanData = null ; public class BeaconBinder extends Binder { public BeaconService getService ( ) { } } public static final int MSG_START_RANGING = 2 ; public static final int MSG_STOP_RANGING = 3 ; public static final int MSG_START_MONITORING = 4 ; public static final int MSG_STOP_MONITORING = 5 ; public static final int MSG_SET_SCAN_PERIODS = 6 ; static class IncomingHandler extends Handler { private final WeakReference < BeaconService > mService ; IncomingHandler ( BeaconService service ) { } @ Override public void handleMessage ( Message msg ) { } } final Messenger mMessenger = new Messenger ( new BeaconService . IncomingHandler ( this ) ) ; @ Override public IBinder onBind ( Intent intent ) { } @ Override public boolean onUnbind ( Intent intent ) { } @ Override public void onCreate ( ) { } @ Override @ TargetApi ( 18 ) public void onDestroy ( ) { } public void startRangingBeaconsInRegion ( Region region , Callback callback ) { } public void stopRangingBeaconsInRegion ( Region region ) { } public void startMonitoringBeaconsInRegion ( Region region , Callback callback ) { } public void stopMonitoringBeaconsInRegion ( Region region ) { } public void setScanPeriods ( long scanPeriod , long betweenScanPeriod , boolean backgroundFlag ) { } private CycledLeScanCallback mCycledLeScanCallback = new CycledLeScanCallback ( ) { @ Override public void onLeScan ( BluetoothDevice device , int rssi , byte [ ] scanRecord ) { } @ Override public void onCycleEnd ( ) { } } ; private void processRangeData ( ) { } private void processExpiredMonitors ( ) { } private void processBeaconFromScan ( Beacon beacon ) { } private class ScanData { public ScanData ( BluetoothDevice device , int rssi , byte [ ] scanRecord ) { } int rssi ; BluetoothDevice device ; byte [ ] scanRecord ; } private class ScanProcessor extends AsyncTask < BeaconService . ScanData , Void , Void > { @ Override protected Void doInBackground ( BeaconService . ScanData ... params ) { } @ Override protected void onPostExecute ( Void result ) { } @ Override protected void onPreExecute ( ) { } @ Override protected void onProgressUpdate ( Void ... values ) { } } private List < Region > matchingRegions ( Beacon beacon , Collection < Region > regions ) { List < Region > matched = new ArrayList < Region > ( ) ; Iterator < Region > regionIterator = regions . iterator ( ) ; while ( regionIterator . hasNext ( ) ) { Region region = regionIterator . next ( ) ; if ( region . matchesBeacon ( beacon ) ) { matched . add ( region ) ; } else { <START_BUG> BeaconManager . logDebug ( BeaconService . TAG , ( "This<seq2seq4repair_space>region<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>match:<seq2seq4repair_space>" + region ) ) ; <END_BUG> } } return matched ; } }

Fix:
BeaconManager . logDebug ( BeaconService . TAG , ( ( ( "This<seq2seq4repair_space>region<seq2seq4repair_space>(" + region ) + ")<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>match<seq2seq4repair_space>beacon:<seq2seq4repair_space>" ) + beacon ) ) ;