@Test public void finadCloseOffsetWithoutANestBlock() { ExtendedQuoteBlock block = new ExtendedQuoteBlock(); assertEquals(-1, block.findCloseOffset("some line", 1)); }
@Override public int findCloseOffset(String line, int lineOffset) { if (nestedBlock == null) { return super.findCloseOffset(line, lineOffset); } return nestedBlock.findCloseOffset(line, lineOffset); }
ExtendedQuoteBlock extends AbstractConfluenceDelimitedBlock { @Override public int findCloseOffset(String line, int lineOffset) { if (nestedBlock == null) { return super.findCloseOffset(line, lineOffset); } return nestedBlock.findCloseOffset(line, lineOffset); } }
ExtendedQuoteBlock extends AbstractConfluenceDelimitedBlock { @Override public int findCloseOffset(String line, int lineOffset) { if (nestedBlock == null) { return super.findCloseOffset(line, lineOffset); } return nestedBlock.findCloseOffset(line, lineOffset); } ExtendedQuoteBlock(); }
ExtendedQuoteBlock extends AbstractConfluenceDelimitedBlock { @Override public int findCloseOffset(String line, int lineOffset) { if (nestedBlock == null) { return super.findCloseOffset(line, lineOffset); } return nestedBlock.findCloseOffset(line, lineOffset); } ExtendedQuoteBlock(); @Override int findCloseOffset(String line, int lineOffset); @Override boolean beginNesting(); @Override boolean canResume(String line, int lineOffset); }
ExtendedQuoteBlock extends AbstractConfluenceDelimitedBlock { @Override public int findCloseOffset(String line, int lineOffset) { if (nestedBlock == null) { return super.findCloseOffset(line, lineOffset); } return nestedBlock.findCloseOffset(line, lineOffset); } ExtendedQuoteBlock(); @Override int findCloseOffset(String line, int lineOffset); @Override boolean beginNesting(); @Override boolean canResume(String line, int lineOffset);  }