Buggy code:
public String getNextEntryTemplate ( IssueType issueType ) { } public String getCurrentTemplate ( ) { } public Issue getReportingIssue ( ) throws Exception { } private void getNewReportingIssue ( ) throws Exception { } public void setReportingIssue ( Issue issue ) { } public void setCurrentModule ( Module me ) { } public void setIssue ( Issue issue ) { } public Issue getIssue ( ) throws Exception { } public Issue getIssue ( String id ) { } public Issue getIssueByPk ( String key ) { } public List getIssues ( ) throws Exception { } public List getIssues ( List issueIds ) throws Exception { } public List getScopes ( ) throws Exception { } public List getFrequencies ( ) throws Exception { } public String getExecuteLink ( String link , Query query ) { } public String getEditLink ( String link , Query query ) { } public Intake getConditionalIntake ( String parameter ) throws Exception { } public IssueSearch getNewSearch ( ) throws Exception , MaxConcurrentSearchException { } public IssueSearch getPopulatedSearch ( String query ) throws Exception { } public IssueSearch getPopulatedSearch ( ) throws Exception { } public Intake parseQuery ( String query ) throws Exception { } public IteratorWithSize getCurrentSearchResults ( ) { } private IteratorWithSize getUnprotectedCurrentSearchResults ( ) throws Exception { } private IteratorWithSize getUncachedCurrentSearchResults ( ) throws Exception { } public int getCurrentSearchResultsSize ( ) { } public int getIssuePosInList ( ) throws Exception , ScarabException { } public String getNextIssue ( ) throws Exception , ScarabException { } public String getPrevIssue ( ) throws Exception , ScarabException { } private void resetIssueIdList ( int issuePos ) { } private boolean checkDate ( IssueSearch search , String date ) throws Exception { } public String convertPath ( String path ) throws Exception { } public List getAllIssueTemplates ( IssueType issueType ) throws Exception { } public List getPrivateTemplates ( IssueType issueType ) throws Exception { } public List getGlobalTemplates ( IssueType issueType ) throws Exception { } public List getAllQueries ( ) throws Exception { } public List getPrivateQueries ( ) throws Exception { } public List getGlobalQueries ( ) throws Exception { } public ReportBridge getReport ( ) throws Exception { } private ReportBridge getNewReport ( MITList mitList ) throws Exception { } public void setReport ( ReportBridge report ) { } public ScarabPaginatedList getUserSearchResults ( MITList mitList , int pageNum , int resultsPerPage , String sortColumn , String sortPolarity , boolean includeCommitters ) throws Exception { } public ScarabPaginatedList getUserFilteredSearchResults ( MITList mitList , int pageNum , int resultsPerPage , String sortColumn , String sortPolarity , boolean includeCommitters ) throws Exception { } private ScarabPaginatedList userFilteredSearchResults ( MITList mitList , int pageNum , int resultsPerPage , String sortColumn , String sortPolarity , String searchString , String searchField , boolean includeCommitters ) throws Exception { } public List getAttributeSearchResults ( ) throws Exception { } public List sortUsers ( List userList ) throws Exception { } public List sortAttributes ( List attList ) throws Exception { } public List getPaginatedList ( List fullList , int pgNbr , int nbrItmsPerPage ) { } public IteratorWithSize getPaginatedIterator ( IteratorWithSize fullList , int pgNbr , int nbrItmsPerPage ) { } public void setIssueList ( List v ) { } public int getAdjustedPageNum ( ) { } public int getNbrPages ( ) { } public int getNextPage ( ) { } public int getPrevPage ( ) { } public DateFormat getDateFormat ( ) { } public Calendar getCalendar ( ) { } public boolean hasPermission ( String permission ) { } public boolean hasPermission ( String permission , Module module ) { } public void resetAssociatedUsers ( ) throws Exception { } public void resetSelectedUsers ( ) throws Exception { } public List getAssignIssuesList ( ) throws Exception { } public List getGlobalUserSearch ( ) { } public void setGlobalUserSearch ( List users ) { } public String getGlobalUserSearchParam ( String name ) { } public void setGlobalUserSearchParam ( String name , String value ) { } public boolean hasItemsToApprove ( ) { } public MITList getMITList ( List issues ) throws Exception { } public List getUserAttributes ( List issues , boolean activeOnly ) throws Exception { } private long startTime ; private long lapTime ; public void startTimer ( ) { } public String reportTimer ( String mesg ) { } private ScarabLocalizationTool getLocalizationTool ( ) { } private ScarabGlobalTool getGlobalTool ( ) { } public Object getConfirmMessage ( ) { } public void setConfirmMessage ( Object v ) { } public void setConfirmMessage ( Localizable localizable ) { } public Object getInfoMessage ( ) { } public void setInfoMessage ( Object v ) { } public void setInfoMessage ( Localizable localizable ) { } public Object getAlertMessage ( ) { } public void setAlertMessage ( Object v ) { } public void setAlertMessage ( Localizable localizable ) { } public ScarabRequestTool . IssueListIterator getIssueListIterator ( IteratorWithSize iterator , int listOffset , int size ) { } public class IssueListIterator implements Iterator { private static final String ISSUE_LIST = "issueList" ; private static final int PREV_SIZE = 1 ; private static final int NEXT_SIZE = 2 ; private WindowIterator i ; private int size ; private int listOffset ; private int count = - 1 ; private IssueListIterator ( IteratorWithSize iterator , int listOffset , int size ) { } public Object next ( ) { } public boolean hasNext ( ) { } public void remove ( ) { } public void initializeLink ( ScarabLink link ) { } } public Object getLastEnteredIssueTypeOrTemplate ( ) throws Exception { } public List getSortedAttributeOptions ( ) { } public boolean isAnonymousLoginAllowed ( ) { <START_BUG> return ( Turbine . getConfiguration ( ) . getProperty ( "scarab.anonymous.username" ) ) != null ; <END_BUG> } public Transition getTransition ( Integer pk ) { } public void recycle ( ) { } public void dispose ( ) { } public boolean isDisposed ( ) { } }

Fix:
return Turbine . getConfiguration ( ) . getBoolean ( "scarab.anonymous.enable" ) ;