commit | 39aa78a0091dabf2a11fb15da5c22a9ad24e788e | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Thu Aug 06 15:45:55 2020 +0200 |
committer | Edwin Kempin <ekempin@google.com> | Fri Aug 07 09:01:34 2020 +0200 |
tree | 0d95805b558b18ae4b4712917f0b57fe5ccc1a29 | |
parent | 8195e6f2b97077df4049c7dbeeecd03e1d03f33f [diff] |
GetCodeOwnersForPathInBranch: Make GitRepositoryManager final This field is only assigned during initialization so we should make it final. Signed-off-by: Edwin Kempin <ekempin@google.com> Change-Id: Ib90d91b771426df2c97be94da5aad6fa191fd76f
diff --git a/java/com/google/gerrit/plugins/codeowners/restapi/GetCodeOwnersForPathInBranch.java b/java/com/google/gerrit/plugins/codeowners/restapi/GetCodeOwnersForPathInBranch.java index a474c00..af85973 100644 --- a/java/com/google/gerrit/plugins/codeowners/restapi/GetCodeOwnersForPathInBranch.java +++ b/java/com/google/gerrit/plugins/codeowners/restapi/GetCodeOwnersForPathInBranch.java
@@ -53,7 +53,7 @@ */ public class GetCodeOwnersForPathInBranch extends AbstractGetCodeOwnersForPath implements RestReadView<CodeOwnersInBranchCollection.PathResource> { - private GitRepositoryManager repoManager; + private final GitRepositoryManager repoManager; private String revision; @Option(name = "-revision", usage = "revision from which the code owner configs should be read")