Merge "Remove unnecessary 'return' statements"

This commit is contained in:
Shawn Pearce
2013-11-18 03:51:15 +00:00
committed by Gerrit Code Review
7 changed files with 2 additions and 18 deletions

View File

@@ -57,12 +57,10 @@ public class SideBySideTable extends AbstractPatchContentTable {
protected void createFileCommentEditorOnSideA() {
createCommentEditor(R_HEAD + 1, A, R_HEAD, FILE_SIDE_A);
return;
}
protected void createFileCommentEditorOnSideB() {
createCommentEditor(R_HEAD + 1, B, R_HEAD, FILE_SIDE_B);
return;
}
@Override

View File

@@ -90,11 +90,8 @@ public class UnifiedDiffTable extends AbstractPatchContentTable {
if (idSideA != null && idSideA.equals(psId)) {
rowOfTableHeaderB++;
borderRowOfFileComment++;
return;
}
if (idSideB.equals(psId)) {
} else if (idSideB.equals(psId)) {
borderRowOfFileComment++;
return;
}
}
}
@@ -137,11 +134,8 @@ public class UnifiedDiffTable extends AbstractPatchContentTable {
if (idSideA != null && idSideA.equals(psId)) {
rowOfTableHeaderB--;
borderRowOfFileComment--;
return;
}
if (idSideB.equals(psId)) {
} else if (idSideB.equals(psId)) {
borderRowOfFileComment--;
return;
}
}
}
@@ -171,7 +165,6 @@ public class UnifiedDiffTable extends AbstractPatchContentTable {
protected void createFileCommentEditorOnSideA() {
createCommentEditor(R_HEAD + 1, PC, R_HEAD, FILE_SIDE_A);
return;
}
protected void createFileCommentEditorOnSideB() {