Buggy code:
public class SolrQuery extends ModifiableSolrParams { public enum ORDER { desc , asc ; public SolrQuery . ORDER reverse ( ) { } } public SolrQuery ( ) { } public SolrQuery ( String q ) { } public SolrQuery addFacetField ( String ... fields ) { } public String [ ] getFacetFields ( ) { } public boolean removeFacetField ( String name ) { } public SolrQuery setFacet ( boolean b ) { } public SolrQuery setFacetPrefix ( String prefix ) { } public SolrQuery setFacetPrefix ( String field , String prefix ) { } public SolrQuery addFacetQuery ( String f ) { } public String [ ] getFacetQuery ( ) { } public boolean removeFacetQuery ( String q ) { } public SolrQuery setFacetLimit ( int lim ) { } public int getFacetLimit ( ) { } public SolrQuery setFacetMinCount ( int cnt ) { } public int getFacetMinCount ( ) { } public SolrQuery setMissing ( String fld ) { } public boolean getFacetSort ( ) { <START_BUG> return this . getBool ( FACET_SORT , false ) ; <END_BUG> } public SolrQuery setFacetSort ( Boolean sort ) { } public SolrQuery addHighlightField ( String f ) { } public boolean removeHighlightField ( String f ) { } public String [ ] getHighlightFields ( ) { } public SolrQuery setHighlightSnippets ( int num ) { } public int getHighlightSnippets ( ) { } public SolrQuery setHighlightFragsize ( int num ) { } public int getHighlightFragsize ( ) { } public SolrQuery setHighlightRequireFieldMatch ( boolean flag ) { } public boolean setHighlightRequireFieldMatch ( ) { } public SolrQuery setHighlightSimplePre ( String f ) { } public String getHighlightSimplePre ( ) { } public SolrQuery setHighlightSimplePost ( String f ) { } public String getHighlightSimplePost ( ) { } public SolrQuery setSortField ( String field , SolrQuery . ORDER order ) { } public SolrQuery addSortField ( String field , SolrQuery . ORDER order ) { } public SolrQuery removeSortField ( String field , SolrQuery . ORDER order ) { } public String [ ] getSortFields ( ) { } public String getSortField ( ) { } public SolrQuery setFilterQueries ( String ... fq ) { } public SolrQuery addFilterQuery ( String ... fq ) { } public boolean removeFilterQuery ( String fq ) { } public String [ ] getFilterQueries ( ) { } public boolean getHighlight ( ) { } public SolrQuery setHighlight ( boolean b ) { } public SolrQuery setFields ( String ... fields ) { } public SolrQuery addField ( String field ) { } public String getFields ( ) { } public SolrQuery setIncludeScore ( boolean includeScore ) { } public SolrQuery setQuery ( String query ) { } public String getQuery ( ) { } public SolrQuery setRows ( Integer rows ) { } public Integer getRows ( ) { } public void setShowDebugInfo ( boolean showDebugInfo ) { } public SolrQuery setStart ( Integer start ) { } public Integer getStart ( ) { } public SolrQuery setQueryType ( String qt ) { } public String getQueryType ( ) { } public SolrQuery setParam ( String name , String ... values ) { } public SolrQuery setParam ( String name , boolean value ) { } public SolrQuery getCopy ( ) { } public SolrQuery setTimeAllowed ( Integer milliseconds ) { } public Integer getTimeAllowed ( ) { } private String toSortString ( String field , SolrQuery . ORDER order ) { } private String join ( String a , String b , String sep ) { } private SolrQuery addValueToParam ( String name , String value ) { } private String join ( String [ ] vals , String sep , String removeVal ) { } }

Fix:
return this . getBool ( FACET_SORT , true ) ;