Buggy code:
public class AsyncServer { public static final String LOGTAG = "NIO" ; private static class RunnableWrapper implements Runnable { boolean hasRun ; Runnable runnable ; ThreadQueue threadQueue ; Handler handler ; @ Override public void run ( ) { } } public static void post ( Handler handler , Runnable runnable ) { } static AsyncServer mInstance = new AsyncServer ( ) ; public static AsyncServer getDefault ( ) { } private SelectorWrapper mSelector ; public boolean isRunning ( ) { } String mName ; public AsyncServer ( ) { } public AsyncServer ( String name ) { } private void handleSocket ( final AsyncNetworkSocket handler ) throws ClosedChannelException { } public void removeAllCallbacks ( Object scheduled ) { } private static void wakeup ( final SelectorWrapper selector ) { AsyncServer . synchronousWorkers . execute ( new Runnable ( ) { @ Override public void run ( ) { try { selector . wakeupOnce ( ) ; } catch ( Exception e ) { <START_BUG> Log . i ( AsyncServer . LOGTAG , "Selector<seq2seq4repair_space>shit<seq2seq4repair_space>the<seq2seq4repair_space>bed." ) ; <END_BUG> } } } ) ; } public Object postDelayed ( Runnable runnable , long delay ) { } public Object post ( Runnable runnable ) { } public Object post ( final CompletedCallback callback , final Exception e ) { } public void run ( final Runnable runnable ) { } private static class Scheduled { public Scheduled ( Runnable runnable , long time ) { } public Runnable runnable ; public long time ; } PriorityQueue < AsyncServer . Scheduled > mQueue = new PriorityQueue < AsyncServer . Scheduled > ( 1 , AsyncServer . Scheduler . INSTANCE ) ; static class Scheduler implements Comparator < AsyncServer . Scheduled > { public static AsyncServer . Scheduler INSTANCE = new AsyncServer . Scheduler ( ) ; private Scheduler ( ) { } @ Override public int compare ( AsyncServer . Scheduled s1 , AsyncServer . Scheduled s2 ) { } } public void stop ( ) { } protected void onDataReceived ( int transmitted ) { } protected void onDataSent ( int transmitted ) { } private static class ObjectHolder < T > { T held ; } public AsyncServerSocket listen ( final InetAddress host , final int port , final ListenCallback handler ) { } private class ConnectFuture extends SimpleFuture < AsyncNetworkSocket > { @ Override protected void cancelCleanup ( ) { } SocketChannel socket ; ConnectCallback callback ; } private AsyncServer . ConnectFuture connectResolvedInetSocketAddress ( final InetSocketAddress address , final ConnectCallback callback ) { } public Cancellable connectSocket ( final InetSocketAddress remote , final ConnectCallback callback ) { } public Cancellable connectSocket ( final String host , final int port , final ConnectCallback callback ) { } private static ExecutorService synchronousWorkers = Executors . newFixedThreadPool ( 4 ) ; public Future < InetAddress [ ] > getAllByName ( final String host ) { } public Future < InetAddress > getByName ( String host ) { } public AsyncDatagramSocket connectDatagram ( final String host , final int port ) throws IOException { } public AsyncDatagramSocket openDatagram ( ) throws IOException { } public AsyncDatagramSocket openDatagram ( final SocketAddress address , final boolean reuseAddress ) throws IOException { } public AsyncDatagramSocket connectDatagram ( final SocketAddress remote ) throws IOException { } static final WeakHashMap < Thread , AsyncServer > mServers = new WeakHashMap < Thread , AsyncServer > ( ) ; private boolean addMe ( ) { } public static AsyncServer getCurrentThreadServer ( ) { } Thread mAffinity ; private void run ( boolean newThread ) { } private static void run ( final AsyncServer server , final SelectorWrapper selector , final PriorityQueue < AsyncServer . Scheduled > queue ) { } private static void shutdownKeys ( SelectorWrapper selector ) { } private static void shutdownEverything ( SelectorWrapper selector ) { } private static final long QUEUE_EMPTY = Long . MAX_VALUE ; private static long lockAndRunQueue ( final AsyncServer server , final PriorityQueue < AsyncServer . Scheduled > queue ) { } private static class AsyncSelectorException extends RuntimeException { public AsyncSelectorException ( Exception e ) { } } private static void runLoop ( final AsyncServer server , final SelectorWrapper selector , final PriorityQueue < AsyncServer . Scheduled > queue ) throws AsyncServer . AsyncSelectorException { } public void dump ( ) { } public Thread getAffinity ( ) { } public boolean isAffinityThread ( ) { } public boolean isAffinityThreadOrStopped ( ) { } }

Fix:
Log . i ( AsyncServer . LOGTAG , "Selector<seq2seq4repair_space>Exception?<seq2seq4repair_space>L<seq2seq4repair_space>Preview?" ) ;