@Test public void getRevision() { Annotation instance = new Annotation("testfile.tst"); assertEquals(instance.getRevision(1), ""); instance.addLine("1.0", "Author", true); assertEquals(instance.getRevision(1), "1.0"); instance.addLine("1.1.0", "Author 2", false); assertEquals(instance.getRevision(2), "1.1.0"); }
public String getRevision(int line) { try { return lines.get(line - 1).revision; } catch (IndexOutOfBoundsException e) { return ""; } }
Annotation { public String getRevision(int line) { try { return lines.get(line - 1).revision; } catch (IndexOutOfBoundsException e) { return ""; } } }
Annotation { public String getRevision(int line) { try { return lines.get(line - 1).revision; } catch (IndexOutOfBoundsException e) { return ""; } } Annotation(String filename); }
Annotation { public String getRevision(int line) { try { return lines.get(line - 1).revision; } catch (IndexOutOfBoundsException e) { return ""; } } Annotation(String filename); String getRevision(int line); Set<String> getRevisions(); String getAuthor(int line); boolean isEnabled(int line); int size(); int getWidestRevision(); int getWidestAuthor(); String getDesc(String revision); int getFileVersion(String revision); int getFileVersionsCount(); Map<String, String> getColors(); String getFilename(); void writeTooltipMap(Writer out); @Override String toString(); }
Annotation { public String getRevision(int line) { try { return lines.get(line - 1).revision; } catch (IndexOutOfBoundsException e) { return ""; } } Annotation(String filename); String getRevision(int line); Set<String> getRevisions(); String getAuthor(int line); boolean isEnabled(int line); int size(); int getWidestRevision(); int getWidestAuthor(); String getDesc(String revision); int getFileVersion(String revision); int getFileVersionsCount(); Map<String, String> getColors(); String getFilename(); void writeTooltipMap(Writer out); @Override String toString();  }