Buggy code:
public User login ( String username , String password ) throws HttpException { } public void reset ( ) { } public boolean isLoggedIn ( ) { } public void setBaseURL ( String baseURL ) { } public String getBaseURL ( ) { } public void setSearchBaseURL ( String searchBaseURL ) { } public String getSearchBaseURL ( ) { } public String getUserId ( ) { } public String getPassword ( ) { } protected Response get ( String url , boolean authenticate ) throws HttpException { } protected Response get ( String url , String name1 , String value1 , boolean authenticate ) throws HttpException { } protected Response get ( String url , String name1 , String value1 , String name2 , String value2 , boolean authenticate ) throws HttpException { } protected Response get ( String url , ArrayList < BasicNameValuePair > params , boolean authenticated ) throws HttpException { } protected Response get ( String url , ArrayList < BasicNameValuePair > params , Paging paging , boolean authenticate ) throws HttpException { } public ArrayList < BasicNameValuePair > createParams ( BasicNameValuePair ... nameValuePair ) { } public QueryResult search ( Query query ) throws HttpException { } public Trends getTrends ( ) throws HttpException { } private String toDateStr ( Date date ) { } public List < Status > getPublicTimeline ( ) throws HttpException { } public RateLimitStatus getRateLimitStatus ( ) throws HttpException { } public List < Status > getHomeTimeline ( ) throws HttpException { } public List < Status > getHomeTimeline ( Paging paging ) throws HttpException { } public List < Status > getFriendsTimeline ( ) throws HttpException { } public List < Status > getFriendsTimeline ( Paging paging ) throws HttpException { } public List < Status > getFriendsTimeline ( int page , int count ) throws HttpException { } public List < Status > getUserTimeline ( String id , Paging paging ) throws HttpException { } public List < Status > getUserTimeline ( String id ) throws HttpException { } public List < Status > getUserTimeline ( ) throws HttpException { } public List < Status > getUserTimeline ( Paging paging ) throws HttpException { } public List < Status > getUserTimeline ( int page , int count ) throws HttpException { } public List < Status > getMentions ( ) throws HttpException { } public List < Status > getMentions ( String since_id ) throws HttpException { } public List < Status > getMentions ( Paging paging ) throws HttpException { } public Status showStatus ( String id ) throws HttpException { } public Status updateStatus ( String status ) throws HttpException { } public Status updateStatus ( String status , double latitude , double longitude ) throws HttpException , JSONException { } public Status updateStatus ( String status , String inReplyToStatusId ) throws HttpException { } public Status updateStatus ( String status , String inReplyToStatusId , double latitude , double longitude ) throws HttpException { } public Status uploadPhoto ( String status , File file ) throws HttpException { } public Status updateStatus ( String status , File file ) throws HttpException { } public Status destroyStatus ( String statusId ) throws HttpException { } public User showUser ( String id ) throws HttpException { } public Status repost ( String to_user_name , String repost_status_id , String repost_status_text , String new_status ) throws HttpException { } public Status repost ( String new_status , String repost_status_id ) throws HttpException { } public Status repost ( String repost_status_id , String new_status , boolean tmp ) throws HttpException { } public List < User > getFriendsStatuses ( ) throws HttpException { } public List < User > getFriendsStatuses ( Paging paging ) throws HttpException { } public List < User > getFriendsStatuses ( String id ) throws HttpException { } public List < User > getFriendsStatuses ( String id , Paging paging ) throws HttpException { <START_BUG> return User . constructUsers ( get ( ( ( getBaseURL ( ) ) + "users//friends.json" ) , createParams ( new BasicNameValuePair ( "id" , id ) ) , paging , false ) ) ; <END_BUG> } public List < User > getFollowersStatuses ( ) throws HttpException { } public List < User > getFollowersStatuses ( Paging paging ) throws HttpException { } public List < User > getFollowersStatuses ( String id ) throws HttpException { } public List < User > getFollowersStatuses ( String id , Paging paging ) throws HttpException { } public DirectMessage sendDirectMessage ( String id , String text ) throws HttpException { } public DirectMessage sendDirectMessage ( String id , String text , String in_reply_to_id ) throws HttpException { } public DirectMessage destroyDirectMessage ( String id ) throws HttpException { } public List < DirectMessage > getDirectMessages ( ) throws HttpException { } public List < DirectMessage > getDirectMessages ( Paging paging ) throws HttpException { } public List < DirectMessage > getSentDirectMessages ( ) throws HttpException { } public List < DirectMessage > getSentDirectMessages ( Paging paging ) throws HttpException { } public List < Status > getFavorites ( ) throws HttpException { } public List < Status > getFavorites ( Paging paging ) throws HttpException { } public List < Status > getFavorites ( int page ) throws HttpException { } public List < Status > getFavorites ( String id ) throws HttpException { } public List < Status > getFavorites ( String id , int page ) throws HttpException { } public List < Status > getFavorites ( String id , Paging paging ) throws HttpException { } public Status createFavorite ( String id ) throws HttpException { } public Status destroyFavorite ( String id ) throws HttpException { } public User enableNotification ( String id ) throws HttpException { } public User disableNotification ( String id ) throws HttpException { } public User createBlock ( String id ) throws HttpException { } public User destroyBlock ( String id ) throws HttpException { }

Fix:
return User . constructUsers ( get ( ( ( getBaseURL ( ) ) + "users//friends.json" ) , createParams ( new BasicNameValuePair ( "id" , id ) ) , paging , true ) ) ;