Fix Eclipse warnings

Change-Id: I571a405b0c77a48fff8243a40a306d036c975ea3
This commit is contained in:
Dave Borowitz
2017-06-15 10:02:14 -04:00
parent 5509d27a42
commit a3e94aa340
2 changed files with 3 additions and 6 deletions

View File

@@ -1237,7 +1237,7 @@ public abstract class AbstractDaemonTest {
}
protected void watch(String project, ProjectWatchInfoConfiguration config)
throws OrmException, RestApiException {
throws RestApiException {
ProjectWatchInfo pwi = new ProjectWatchInfo();
pwi.project = project;
config.configure(pwi);
@@ -1249,7 +1249,7 @@ public abstract class AbstractDaemonTest {
watch(r.getChange().project().get(), config);
}
protected void watch(String project, String filter) throws OrmException, RestApiException {
protected void watch(String project, String filter) throws RestApiException {
watch(
project,
pwi -> {
@@ -1260,7 +1260,7 @@ public abstract class AbstractDaemonTest {
});
}
protected void watch(String project) throws OrmException, RestApiException {
protected void watch(String project) throws RestApiException {
watch(project, (String) null);
}

View File

@@ -127,13 +127,10 @@ import java.util.Objects;
import java.util.OptionalInt;
import java.util.Set;
import org.eclipse.jgit.lib.Config;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@Singleton
public class PostReview
extends RetryingRestModifyView<RevisionResource, ReviewInput, Response<ReviewResult>> {
private static final Logger log = LoggerFactory.getLogger(PostReview.class);
private static final Gson GSON = OutputFormat.JSON_COMPACT.newGson();
private static final int DEFAULT_ROBOT_COMMENT_SIZE_LIMIT_IN_BYTES = 1024 * 1024;