@Override public CloseableIterator<ScannerReport.AdHocRule> readAdHocRules() { ensureInitialized(); return delegate.readAdHocRules(); }
private void updateAdHocRules() { adHocRuleEditor.setText(""); StringBuilder builder = new StringBuilder(); try (CloseableIterator<ScannerReport.AdHocRule> adHocRuleCloseableIterator = reader.readAdHocRules()) { while (adHocRuleCloseableIterator.hasNext()) { builder.append(adHocRuleCloseableIterator.next().toString()).append("\n"); } adHocRuleEditor.setText(builder.toString()); } }
public List<ScannerReport.AdHocRule> adHocRules() { List<ScannerReport.AdHocRule> result = new ArrayList<>(); try (CloseableIterator<ScannerReport.AdHocRule> it = getReportReader().readAdHocRules()) { while (it.hasNext()) { result.add(it.next()); } } catch (Exception e) { throw new IllegalStateException(e); } return result; } }
private void updateAdHocRules() { adHocRuleEditor.setText(""); StringBuilder builder = new StringBuilder(); try (CloseableIterator<ScannerReport.AdHocRule> adHocRuleCloseableIterator = reader.readAdHocRules()) { while (adHocRuleCloseableIterator.hasNext()) { builder.append(adHocRuleCloseableIterator.next().toString()).append("\n"); } adHocRuleEditor.setText(builder.toString()); } }
public List<ScannerReport.AdHocRule> adHocRules() { List<ScannerReport.AdHocRule> result = new ArrayList<>(); try (CloseableIterator<ScannerReport.AdHocRule> it = getReportReader().readAdHocRules()) { while (it.hasNext()) { result.add(it.next()); } } catch (Exception e) { throw new IllegalStateException(e); } return result; } }