Buggy code:
public static boolean isRestarting ; public static AutoCacheScheduler autoCache ; private final List < Reddit . Listener > listeners = new ArrayList < > ( ) ; public boolean active ; private ImageLoader defaultImageLoader ; public static void forceRestart ( Context context ) { } public static void forceRestart ( Context c , boolean forceLoadScreen ) { } public static int pxToDp ( int dp , Context c ) { } public static void defaultShareText ( String title , String url , Context c ) { } public static void defaultShare ( String url , Context c ) { } public static boolean isPackageInstalled ( final Context ctx , String s ) { } private static boolean isPackageInstalled ( final Context ctx ) { } private static boolean isVideoPluginInstalled ( final Context ctx ) { } public static String arrayToString ( ArrayList < String > array ) { } public static String arrayToString ( ArrayList < String > array , String separator ) { } public static ArrayList < String > stringToArray ( String string ) { } public static Integer getSortingId ( String subreddit ) { } public static Integer getSortingIdSearch ( ) { } public static Integer getSortingIdSearch ( Search s ) { } public static Integer getTypeSearch ( ) { } public static String [ ] getSortingStrings ( Context c , String currentSub , boolean arrows ) { } public static String [ ] getSortingStrings ( Context c , Sorting currentSort , TimePeriod currentTime , boolean arrows ) { String [ ] current = new String [ ] { c . getString ( sorting_hot ) , c . getString ( sorting_new ) , c . getString ( sorting_rising ) , ( ( c . getString ( sorting_top ) ) + "<seq2seq4repair_space>" ) + ( c . getString ( sorting_hour ) . toLowerCase ( ) ) , ( ( c . getString ( sorting_top ) ) + "<seq2seq4repair_space>" ) + ( c . getString ( sorting_day ) . toLowerCase ( ) ) , ( ( c . getString ( sorting_top ) ) + "<seq2seq4repair_space>" ) + ( c . getString ( sorting_week ) . toLowerCase ( ) ) , ( ( c . getString ( sorting_top ) ) + "<seq2seq4repair_space>" ) + ( c . getString ( sorting_month ) . toLowerCase ( ) ) , ( ( c . getString ( sorting_top ) ) + "<seq2seq4repair_space>" ) + ( c . getString ( sorting_year ) . toLowerCase ( ) ) , ( ( c . getString ( sorting_top ) ) + "<seq2seq4repair_space>" ) + ( c . getString ( sorting_all ) . toLowerCase ( ) ) , ( ( c . getString ( sorting_controversial ) ) + "<seq2seq4repair_space>" ) + ( c . getString ( sorting_hour ) . toLowerCase ( ) ) , ( ( c . getString ( sorting_controversial ) ) + "<seq2seq4repair_space>" ) + ( c . getString ( sorting_day ) . toLowerCase ( ) ) , ( ( c . getString ( sorting_controversial ) ) + "<seq2seq4repair_space>" ) + ( c . getString ( sorting_week ) . toLowerCase ( ) ) , ( ( c . getString ( sorting_controversial ) ) + "<seq2seq4repair_space>" ) + ( c . getString ( sorting_month ) . toLowerCase ( ) ) , ( ( c . getString ( sorting_controversial ) ) + "<seq2seq4repair_space>" ) + ( c . getString ( sorting_year ) . toLowerCase ( ) ) , ( ( c . getString ( sorting_controversial ) ) + "<seq2seq4repair_space>" ) + ( c . getString ( sorting_all ) . toLowerCase ( ) ) } ; int pos = 0 ; switch ( currentSort ) { case HOT : pos = 0 ; break ; case NEW : pos = 1 ; break ; case RISING : pos = 2 ; break ; case CONTROVERSIAL : pos = 9 ; break ; case TOP : pos = 3 ; break ; } if ( pos > 2 ) { switch ( currentTime ) { case HOUR : break ; case DAY : pos += 1 ; break ; case WEEK : pos += 2 ; break ; case MONTH : pos += 3 ; break ; case YEAR : pos += 4 ; break ; case ALL : pos += 5 ; break ; } } <START_BUG> current [ pos ] = ( arrows ) ? "»<seq2seq4repair_space>" : ( "" + ( current [ pos ] ) ) + "" ; <END_BUG> return current ; } public static String [ ] getSortingStringsComments ( Context c ) { } public static String [ ] getSearch ( Context c ) { } public static String [ ] getSortingStringsSearch ( Context c ) { } @ Override public void onLowMemory ( ) { } public ImageLoader getImageLoader ( ) { } public static boolean notFirst = false ; @ Override public void onActivityResumed ( Activity activity ) { } @ Override public void onActivityPaused ( Activity activity ) { } public static void setDefaultErrorHandler ( Context base ) { } @ Override public void onActivityStopped ( Activity activity ) { } @ Override public void onActivityCreated ( Activity activity , Bundle savedInstanceState ) { } @ Override public void onActivityStarted ( Activity activity ) { } @ Override public void onActivitySaveInstanceState ( Activity activity , Bundle outState ) { } @ Override public void onActivityDestroyed ( Activity activity ) { } @ Override public void onCreate ( ) { } public void doMainStuff ( ) { } public static void setSorting ( String s , Sorting sort ) { } public static final Map < String , Sorting > sorting = new HashMap < > ( ) ; public static Sorting getSorting ( String subreddit ) { } public static void setTime ( String s , TimePeriod sort ) { } public static final Map < String , TimePeriod > times = new HashMap < > ( ) ; public static TimePeriod getTime ( String subreddit ) { }

Fix:
current [ pos ] = ( ( arrows ? "»<seq2seq4repair_space>" : "" ) + ( current [ pos ] ) ) + "" ;