Buggy code:
public class WebServer extends NanoHTTPD implements MediaPlayer . OnCompletionListener , AudioManager . OnAudioFocusChangeListener { protected static String DOCROOT = "//" ; private MediaPlayer mediaPlayer = new MediaPlayer ( ) ; private String currentPlaybackUri = null ; private TrackInfo currentPlaybackTrackInfo = null ; private Context context = null ; protected List < TrackInfo > playlist = new Vector < TrackInfo > ( ) ; protected int currentPlaylistIndex = - 1 ; protected AudioDatabase audioDatabase = null ; public WebServer ( Context context ) { } @ Override public Response serve ( String uri , Method method , Map < String , String > header , Map < String , String > parameters , Map < String , String > files ) { } String makeAlbumList ( Map < String , String > parameters ) { } String makeTracksByAlbum ( String album ) { } String makeDirList ( String uri , Map < String , String > parameters ) { } void playFileNow ( String uri ) throws IOException { } int addToPlaylist ( String uri ) throws IOException { } String makeControls ( ) { StringBuffer sb = new StringBuffer ( ) ; sb . append ( "<p//>" ) ; sb . append ( "<hr//>" ) ; sb . append ( "<a<seq2seq4repair_space>href=\"//\">Home<//a><seq2seq4repair_space>|<seq2seq4repair_space>" ) ; <START_BUG> sb . append ( "<a<seq2seq4repair_space>href=\"http:////kevinboone.net//README_androidmusicserver\">Documentation<//a><seq2seq4repair_space>|<seq2seq4repair_space>" ) ; <END_BUG> sb . append ( "<a<seq2seq4repair_space>href=\"javascript:volume_up()\">Vol<seq2seq4repair_space>up<//a><seq2seq4repair_space>|<seq2seq4repair_space>" ) ; sb . append ( "<a<seq2seq4repair_space>href=\"javascript:volume_down()\">Vol<seq2seq4repair_space>down<//a><seq2seq4repair_space>|<seq2seq4repair_space>" ) ; sb . append ( "<a<seq2seq4repair_space>href=\"//gui_files\">Files<//a><seq2seq4repair_space>|<seq2seq4repair_space>" ) ; sb . append ( "<a<seq2seq4repair_space>href=\"//gui_albums\">Albums<//a><seq2seq4repair_space>|<seq2seq4repair_space>" ) ; sb . append ( "<a<seq2seq4repair_space>href=\"//gui_playlist\">Playlist<//a><seq2seq4repair_space>|<seq2seq4repair_space>" ) ; sb . append ( "<a<seq2seq4repair_space>href=\"javascript:clear_playlist()\">Clear<seq2seq4repair_space>playlist<//a>" ) ; sb . append ( "<p//>" ) ; return new String ( sb ) ; } NanoHTTPD . Response handleCommand ( String cmd ) { } NanoHTTPD . Response serveResource ( String resource ) { } protected String makeHtmlHeader ( ) { } protected String makeHtmlFooter ( ) { } protected String makeRedirect ( String url ) { } protected String getTransportStatusAsJSON ( ) { } protected String makeJSONStatusResponse ( int code ) { } protected String makeJSONStatusResponse ( int code , String message ) { } protected String makeJSONStatusResponse ( Exception e ) { } protected Response handleGuiTracksByAlbum ( Map < String , String > parameters ) { } protected Response handleGuiFiles ( Map < String , String > parameters ) { } protected Response handleGuiAlbums ( Map < String , String > parameters ) { } protected Response handleGuiPlaylist ( Map < String , String > parameters ) { } boolean isPlayableFile ( String name ) { } NanoHTTPD . Response play ( ) { } NanoHTTPD . Response playInPlaylist ( int index ) { } NanoHTTPD . Response stopPlayback ( ) { } NanoHTTPD . Response playAlbumNow ( String album ) { } NanoHTTPD . Response addAlbumToPlaylist ( String album ) { } NanoHTTPD . Response playFromStartOfPlaylist ( ) { } NanoHTTPD . Response playNextInPlaylist ( ) { } NanoHTTPD . Response playPrevInPlaylist ( ) { } NanoHTTPD . Response clearPlaylist ( ) { } NanoHTTPD . Response pause ( ) { } NanoHTTPD . Response volumeUp ( ) { } NanoHTTPD . Response volumeDown ( ) { } public void onCompletion ( MediaPlayer mp ) { } public void getAudioFocus ( ) { } public void releaseAudioFocus ( ) { } @ Override public void onAudioFocusChange ( int focusChange ) { } @ Override public void stop ( ) { } }

Fix:
sb . append ( "<a<seq2seq4repair_space>href=\"http:////kevinboone.net//README_androidmusicserver.html\">Documentation<//a><seq2seq4repair_space>|<seq2seq4repair_space>" ) ;