diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2019-08-26 22:43:11 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2019-08-30 02:34:13 +0200 |
commit | af0296b42c150cf2191e2279cb50cfec8ff8a270 (patch) | |
tree | fe4c67caf170c69eac2282a148424c0327b057da /org.eclipse.jgit.pgm.test/pom.xml | |
parent | 418722df34ca007362e23be60ef57dbe6f1d1b7a (diff) | |
download | jgit-af0296b42c150cf2191e2279cb50cfec8ff8a270.tar.gz jgit-af0296b42c150cf2191e2279cb50cfec8ff8a270.zip |
Return a new instance from openSystemConfig and openUserConfig
Move the handling of cached user and system config to getSystemConfig
and getUserConfig methods and revert the implementation of
openSystemConfig and openUserConfig to the old stateless
implementation.
This ensures the open methods respect the passed-in parent config, which
may be different on each invocation. Additionally, returning a new
instance matches the behavior of the previous implementation of the
default system reader, which downstream callers may be depending on.
Move the implementation of the new caching methods getSystemConfig and
getUserConfig up to SystemReader. This avoids that we break the ABI for
subclasses of SystemReader.
Also see [1] which fixed a similar problem with Gerrit's custom
SystemReader.
[1] https://gerrit-review.googlesource.com/c/gerrit/+/225458
Change-Id: If54a2491932d8fc914d4649cb73c9e837c5b8ad0
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.pgm.test/pom.xml')
0 files changed, 0 insertions, 0 deletions