Remove unnecessary 'return' statements

Change-Id: Ie517a85ad5d0d53479b8f726b932048acce4f889
This commit is contained in:
alex.ryazantsev
2013-11-18 06:20:36 +04:00
committed by Александр Рязанцев
parent fc798093b8
commit cc2bccfdfd
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() {

View File

@@ -104,7 +104,6 @@ final class GerritJsonServlet extends JsonServlet<GerritJsonServlet.GerritCall>
//
if (!call.requireXsrfValid() || !session.get().isSignedIn()) {
call.onFailure(new NotSignedInException());
return;
}
}
}

View File

@@ -467,8 +467,6 @@ public class ChangeJson {
label.value = score;
}
}
return;
}
private void setAllApprovals(ChangeData cd,

View File

@@ -1179,7 +1179,6 @@ public class ReceiveCommits {
walk.markStart(h);
if (walk.next() == null) {
reject(magicBranch.cmd, "no common ancestry");
return;
}
} finally {
walk.reset();
@@ -1188,7 +1187,6 @@ public class ReceiveCommits {
} catch (IOException e) {
magicBranch.cmd.setResult(REJECTED_MISSING_OBJECT);
log.error("Invalid pack upload; one or more objects weren't sent", e);
return;
}
}

View File

@@ -512,7 +512,6 @@ public class QueryShell {
obj.addProperty("type", "error");
obj.addProperty("message", "Unsupported Json variant");
println(obj.toString());
return;
}
}

View File

@@ -72,7 +72,6 @@ final class ReviewDbDataSourceProvider implements Provider<DataSource>,
Class<?> type = Class.forName("com.mchange.v2.c3p0.DataSources");
if (type.isInstance(ds)) {
type.getMethod("destroy", DataSource.class).invoke(null, ds);
return;
}
} catch (Throwable bad) {
// Oh well, its not a c3p0 pooled connection.