diff options
author | Fabio Ponciroli <ponch78@gmail.com> | 2022-08-06 07:39:14 +0200 |
---|---|---|
committer | Jacek Centkowski <geminica.programs@gmail.com> | 2022-08-06 07:42:15 +0200 |
commit | d77e8d0ce600af9d34463c604e8c61a64a57593b (patch) | |
tree | 0237abcd12ddf2480f00163010fc250c482c7446 | |
parent | db31bce0473f76106f2369a9baf06ef4efa6f58b (diff) |
Make delegate() method public
The delegate() method was initially introduced in I8a862ac852
to allow access to the underlying repository while running GC
for sites using multi-site plugin.
The method was initially package private since the callers
where in the same package.
Changing visibility of delegate() method to public
to allow plugins to access it.
Accessing the wrapped repository would otherwise require hacky
workarounds like this Ia3fbdc7e96.
Bug: Issue 15997
Release-Notes: Make DelegateRepository#delegate() method public
Change-Id: I4c8b4f97f9995a7adeca5b6f763e7913c9e8a5e5
-rw-r--r-- | java/com/google/gerrit/server/git/DelegateRepository.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/com/google/gerrit/server/git/DelegateRepository.java b/java/com/google/gerrit/server/git/DelegateRepository.java index 96b019d3b7..2c523b2f2b 100644 --- a/java/com/google/gerrit/server/git/DelegateRepository.java +++ b/java/com/google/gerrit/server/git/DelegateRepository.java @@ -36,7 +36,8 @@ public class DelegateRepository extends Repository { this.delegate = delegate; } - Repository delegate() { + /** Returns the wrapped {@link Repository} instance. */ + public Repository delegate() { return delegate; } |