commit | bcbc5068032af483d2e104022dc9b9ee659747ec | [log] [tgz] |
---|---|---|
author | David Pursehouse <dpursehouse@digital.ai> | Fri Jun 12 20:31:19 2020 +0900 |
committer | David Pursehouse <dpursehouse@digital.ai> | Fri Jun 12 20:31:19 2020 +0900 |
tree | b5672be4d27d2f15c10eb736f11a325cde919a8d | |
parent | 8cca82b7cee1425bd72abd17a9f981248af67468 [diff] |
Adapt to changed signature of apply(...) methods Since change I1dd37821a the apply method must return a parameterized type Response<?>. Change-Id: I51fa18156b7ce2920997e12cbb92368c5077552e
diff --git a/src/main/java/com/googlesource/gerrit/plugins/lfs/GetLfsGlobalConfig.java b/src/main/java/com/googlesource/gerrit/plugins/lfs/GetLfsGlobalConfig.java index 3f92417..1db9358 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/lfs/GetLfsGlobalConfig.java +++ b/src/main/java/com/googlesource/gerrit/plugins/lfs/GetLfsGlobalConfig.java
@@ -36,7 +36,7 @@ } @Override - public Response apply(ProjectResource resource) throws RestApiException { + public Response<LfsGlobalConfigInfo> apply(ProjectResource resource) throws RestApiException { adminView.validate(resource); LfsGlobalConfigInfo info = new LfsGlobalConfigInfo();
diff --git a/src/main/java/com/googlesource/gerrit/plugins/lfs/GetLfsProjectConfig.java b/src/main/java/com/googlesource/gerrit/plugins/lfs/GetLfsProjectConfig.java index aedfad1..c445d77 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/lfs/GetLfsProjectConfig.java +++ b/src/main/java/com/googlesource/gerrit/plugins/lfs/GetLfsProjectConfig.java
@@ -32,7 +32,7 @@ } @Override - public Response apply(ProjectResource resource) throws RestApiException { + public Response<LfsProjectConfigInfo> apply(ProjectResource resource) throws RestApiException { LfsProjectConfigInfo info = new LfsProjectConfigInfo(); LfsProjectConfigSection config = lfsConfigFactory.getProjectsConfig().getForProject(resource.getNameKey());
diff --git a/src/main/java/com/googlesource/gerrit/plugins/lfs/PutLfsGlobalConfig.java b/src/main/java/com/googlesource/gerrit/plugins/lfs/PutLfsGlobalConfig.java index 8a5457a..de66bbb 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/lfs/PutLfsGlobalConfig.java +++ b/src/main/java/com/googlesource/gerrit/plugins/lfs/PutLfsGlobalConfig.java
@@ -64,7 +64,7 @@ } @Override - public Response apply(ProjectResource resource, LfsGlobalConfigInput input) + public Response<LfsGlobalConfigInfo> apply(ProjectResource resource, LfsGlobalConfigInput input) throws RestApiException { adminView.validate(resource); Project.NameKey projectName = resource.getNameKey();