diff options
author | Thomas Wolf <thomas.wolf@paranor.ch> | 2017-08-15 14:52:44 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2017-08-26 09:11:02 +0200 |
commit | d32ad1cadd4fcbf908d48b20f6b16e96338c89e2 (patch) | |
tree | cb3d6edb215678954aa22648e71987673df84ac8 /org.eclipse.jgit.junit.http/.settings/org.eclipse.pde.core.prefs | |
parent | 7511bc886e801f5f30d8048117618dd3814cc3e7 (diff) | |
download | jgit-d32ad1cadd4fcbf908d48b20f6b16e96338c89e2.tar.gz jgit-d32ad1cadd4fcbf908d48b20f6b16e96338c89e2.zip |
Improve getting typed values from a Config
Make the handling of typed values somewhat configurable by using
a separate converter. The default converter is the same as before;
just the implementations of the getters were moved. They also still
raise IllegalArgumentException on invalid values as before.
The converter can be set globally via Config.setTypedConfigGetter(),
which EGit can use in its core Activator to plug in a variant that
catches the IllegalArgumentException, logs the problem, and then
returns the default value.
In this way the behavior for other users of the JGit library is
unchanged, while EGit can deal gracefully with invalid git configs.
Bug: 520978
Change-Id: Ie8f81d206e358b6cc57aa29b9d7ad2a5d34b86a1
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.jgit.junit.http/.settings/org.eclipse.pde.core.prefs')
0 files changed, 0 insertions, 0 deletions