Merge "Remove unnecessary 'return' statements"
This commit is contained in:
@@ -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
|
||||
|
@@ -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() {
|
||||
|
Reference in New Issue
Block a user