[vcs-log] minor: NotNull annotations

This commit is contained in:
Julia Beliaeva
2016-04-12 23:58:42 +03:00
parent c6a35c6daa
commit 10271c741b
2 changed files with 5 additions and 2 deletions
@@ -93,14 +93,16 @@ public abstract class AbstractPrintElementGenerator implements PrintElementGener
return result;
}
private SimplePrintElementImpl createSimplePrintElement(int rowIndex, SimpleRowElement rowElement) {
@NotNull
private SimplePrintElementImpl createSimplePrintElement(int rowIndex, @NotNull SimpleRowElement rowElement) {
return new SimplePrintElementImpl(rowIndex, rowElement.myPosition, rowElement.myElement, myPrintElementManager);
}
@NotNull
private EdgePrintElementImpl createEdgePrintElement(int rowIndex,
@NotNull ShortEdge shortEdge,
@NotNull EdgePrintElement.Type type,
@NotNull boolean hasArrow) {
boolean hasArrow) {
int positionInCurrentRow, positionInOtherRow;
if (type == EdgePrintElement.Type.DOWN) {
positionInCurrentRow = shortEdge.myUpPosition;
@@ -64,6 +64,7 @@ public abstract class PrintElementWithGraphElement implements PrintElement {
return myPrintElementManager.isSelected(this);
}
@NotNull
public static PrintElementWithGraphElement converted(@NotNull PrintElementWithGraphElement element,
@NotNull GraphElement convertedGraphElement) {
return new PrintElementWithGraphElement(element.getRowIndex(), element.getPositionInCurrentRow(), convertedGraphElement,