Buggy code:
public class AwfulThread extends AwfulPagedItem implements AwfulDisplayItem { private static final String TAG = "AwfulThread" ; private String mThreadId ; private int threadId ; private String mAuthor ; private String mAuthorID ; private boolean mSticky ; private String mIcon ; private int mUnreadCount ; private int mTotalPosts ; private boolean mClosed ; private boolean mBookmarked ; private HashMap < Integer , ArrayList < AwfulPost > > mPosts ; public AwfulThread ( ) { } public AwfulThread ( String aThreadId ) { } public AwfulThread ( int aThreadId ) { } public static TagNode getForumThreads ( String aForumId ) throws Exception { } public static TagNode getForumThreads ( String aForumId , int aPage ) throws Exception { } public static TagNode getUserCPThreads ( int aPage ) throws Exception { } public static ArrayList < AwfulThread > parseForumThreads ( TagNode aResponse , int postPerPage ) throws Exception { } public void setBookmarked ( boolean b ) { } public boolean isBookmarked ( ) { } public static ArrayList < AwfulForum > parseSubforums ( TagNode aResponse ) { } public void getThreadPosts ( int aPage , int postPerPage ) throws Exception { } public static String getHtml ( ArrayList < AwfulPost > aPosts , AwfulPreferences aPrefs , boolean isTablet ) { } public static String getPostsHtmlForPhone ( ArrayList < AwfulPost > aPosts , AwfulPreferences aPrefs ) { StringBuffer buffer = new StringBuffer ( ) ; boolean light = true ; String background = null ; for ( AwfulPost post : aPosts ) { if ( post . isPreviouslyRead ( ) ) { background = ColorPickerPreference . convertToARGB ( ( light ? aPrefs . postReadBackgroundColor : aPrefs . postReadBackgroundColor2 ) ) ; } else { background = ColorPickerPreference . convertToARGB ( ( light ? aPrefs . postBackgroundColor : aPrefs . postBackgroundColor2 ) ) ; } if ( ( aPrefs . alternateBackground ) == true ) { light = ! light ; } buffer . append ( ( ( ( ( "<tr<seq2seq4repair_space>class='" + ( post . isPreviouslyRead ( ) ? "read" : "unread" ) ) + "'<seq2seq4repair_space>id='" ) + ( post . getId ( ) ) ) + "'>" ) ) ; <START_BUG> buffer . append ( ( ( "<seq2seq4repair_space><td<seq2seq4repair_space>class='userinfo-row'<seq2seq4repair_space>style='width:<seq2seq4repair_space>100%;" + ( post . getThread ( ) . getAuthorID ( ) . equals ( post . getUserId ( ) ) ? "background-color:" + ( ColorPickerPreference . convertToARGB ( aPrefs . postOPColor ) ) : "" ) ) + "'>" ) ) ; <END_BUG> buffer . append ( "<seq2seq4repair_space><div<seq2seq4repair_space>class='avatar'>" ) ; if ( ( post . getAvatar ( ) ) != null ) { buffer . append ( ( ( "<seq2seq4repair_space><img<seq2seq4repair_space>src='" + ( post . getAvatar ( ) ) ) + "'<seq2seq4repair_space>//>" ) ) ; } buffer . append ( "<seq2seq4repair_space><//div>" ) ; buffer . append ( "<seq2seq4repair_space><div<seq2seq4repair_space>class='userinfo'>" ) ; buffer . append ( "<seq2seq4repair_space><div<seq2seq4repair_space>class='username'>" ) ; buffer . append ( ( ( "<seq2seq4repair_space><h4>" + ( post . getUsername ( ) ) ) + "<//h4>" ) ) ; buffer . append ( "<seq2seq4repair_space><//div>" ) ; buffer . append ( "<seq2seq4repair_space><div<seq2seq4repair_space>class='postdate'>" ) ; buffer . append ( ( "<seq2seq4repair_space>" + ( post . getDate ( ) ) ) ) ; buffer . append ( "<seq2seq4repair_space><//div>" ) ; buffer . append ( "<seq2seq4repair_space><//div>" ) ; buffer . append ( ( ( ( ( ( ( ( ( "<seq2seq4repair_space><div<seq2seq4repair_space>class='action-button<seq2seq4repair_space>" + ( post . isEditable ( ) ? "editable" : "noneditable" ) ) + "'<seq2seq4repair_space>id='" ) + ( post . getId ( ) ) ) + "'<seq2seq4repair_space>lastreadurl='" ) + ( post . getLastReadUrl ( ) ) ) + "'<seq2seq4repair_space>username='" ) + ( post . getUsername ( ) ) ) + "'>" ) ) ; buffer . append ( "<seq2seq4repair_space><img<seq2seq4repair_space>src='file://////android_asset//post_action_icon.png'<seq2seq4repair_space>//>" ) ; buffer . append ( "<seq2seq4repair_space><//div>" ) ; buffer . append ( "<seq2seq4repair_space><//td>" ) ; buffer . append ( "<//tr>" ) ; buffer . append ( "<tr>" ) ; buffer . append ( ( ( "<seq2seq4repair_space><td<seq2seq4repair_space>class='post-cell'<seq2seq4repair_space>colspan='2'<seq2seq4repair_space>style='background:<seq2seq4repair_space>" + background ) + ";'>" ) ) ; buffer . append ( ( ( ( ( "<seq2seq4repair_space><div<seq2seq4repair_space>class='post-content'<seq2seq4repair_space>style='color:<seq2seq4repair_space>" + ( ColorPickerPreference . convertToARGB ( aPrefs . postFontColor ) ) ) + ";<seq2seq4repair_space>font-size:<seq2seq4repair_space>" ) + ( aPrefs . postFontSize ) ) + ";'>" ) ) ; buffer . append ( ( "<seq2seq4repair_space>" + ( post . getContent ( ) ) ) ) ; buffer . append ( "<seq2seq4repair_space><//div>" ) ; buffer . append ( "<seq2seq4repair_space><//td>" ) ; buffer . append ( "<//tr>" ) ; } return buffer . toString ( ) ; } public static String getPostsHtmlForTablet ( ArrayList < AwfulPost > aPosts , AwfulPreferences aPrefs ) { } public String getThreadId ( ) { } public void setThreadId ( String aThreadId ) { } public String getAuthor ( ) { } public void setAuthor ( String aAuthor ) { } public String getAuthorID ( ) { } public void setAuthorID ( String aAuthorID ) { } public String getIcon ( ) { } public void setIcon ( String aIcon ) { } public boolean isClosed ( ) { } public void setClosed ( boolean aClosed ) { } public boolean isSticky ( ) { } public void setSticky ( boolean aSticky ) { } public int getUnreadCount ( ) { } public void setUnreadCount ( int aUnreadCount ) { } public ArrayList < AwfulPost > getPosts ( int page ) { } public void setPosts ( ArrayList < AwfulPost > aPosts , int page ) { } @ Override public View getView ( LayoutInflater inf , View current , ViewGroup parent , AwfulPreferences prefs ) { } @ Override public int getID ( ) { } @ Override public DISPLAY_TYPE getType ( ) { } @ Override public ArrayList < ? extends AwfulDisplayItem > getChildren ( int page ) { } @ Override public JSONArray getSerializedChildren ( int aPage ) { } public void prunePages ( int save ) { } @ Override public boolean isEnabled ( ) { } @ Override public int getChildrenCount ( int page ) { } @ Override public AwfulDisplayItem getChild ( int page , int ix ) { }

Fix:
buffer . append ( ( ( "<seq2seq4repair_space><td<seq2seq4repair_space>class='userinfo-row'<seq2seq4repair_space>style='width:<seq2seq4repair_space>100%;" + ( post . isOp ( ) ? "background-color:" + ( ColorPickerPreference . convertToARGB ( aPrefs . postOPColor ) ) : "" ) ) + "'>" ) ) ;