@Test public void testDestroyUninitializedInstance() { new SearchHelper().destroy(); }
public void destroy() { if (searcher != null && closeOnDestroy) { IOUtils.close(searcher.getIndexReader()); } for (SuperIndexSearcher is : searcherList) { try { is.getSearcherManager().release(is); } catch (IOException ex) { LOGGER.log(Level.WARNING, "cannot release indexSearcher", ex); } } }
SearchHelper { public void destroy() { if (searcher != null && closeOnDestroy) { IOUtils.close(searcher.getIndexReader()); } for (SuperIndexSearcher is : searcherList) { try { is.getSearcherManager().release(is); } catch (IOException ex) { LOGGER.log(Level.WARNING, "cannot release indexSearcher", ex); } } } }
SearchHelper { public void destroy() { if (searcher != null && closeOnDestroy) { IOUtils.close(searcher.getIndexReader()); } for (SuperIndexSearcher is : searcherList) { try { is.getSearcherManager().release(is); } catch (IOException ex) { LOGGER.log(Level.WARNING, "cannot release indexSearcher", ex); } } }  }
SearchHelper { public void destroy() { if (searcher != null && closeOnDestroy) { IOUtils.close(searcher.getIndexReader()); } for (SuperIndexSearcher is : searcherList) { try { is.getSearcherManager().release(is); } catch (IOException ex) { LOGGER.log(Level.WARNING, "cannot release indexSearcher", ex); } } }  static Set<Map.Entry<String, String>> getFileTypeDescriptions(); SearchHelper prepareExec(SortedSet<String> projects); SearchHelper prepareExec(Project project); SearchHelper executeQuery(); List<Suggestion> getSuggestions(); SearchHelper prepareSummary(); void destroy(); int searchSingle(File file); int getTabSize(Project proj); String getPrimeRelativePath(String project, String relativePath); }
SearchHelper { public void destroy() { if (searcher != null && closeOnDestroy) { IOUtils.close(searcher.getIndexReader()); } for (SuperIndexSearcher is : searcherList) { try { is.getSearcherManager().release(is); } catch (IOException ex) { LOGGER.log(Level.WARNING, "cannot release indexSearcher", ex); } } }  static Set<Map.Entry<String, String>> getFileTypeDescriptions(); SearchHelper prepareExec(SortedSet<String> projects); SearchHelper prepareExec(Project project); SearchHelper executeQuery(); List<Suggestion> getSuggestions(); SearchHelper prepareSummary(); void destroy(); int searchSingle(File file); int getTabSize(Project proj); String getPrimeRelativePath(String project, String relativePath); static final String REQUEST_ATTR; public int SPELLCHECK_SUGGEST_WORD_COUNT; public File dataRoot; public String contextPath; public File sourceRoot; public EftarFileReader desc; public int start; public int maxItems; public QueryBuilder builder; public SortOrder order; public boolean parallel; public boolean isCrossRefSearch; public boolean isGuiSearch; public String redirect; public boolean noRedirect; public String errorMsg; public IndexSearcher searcher; public ScoreDoc[] hits; public long totalHits; public Query query; public SortedSet<String> projects; public Context sourceContext; public Summarizer summarizer; public HistoryContext historyContext; static final String PARSE_ERROR_MSG; }