aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.junit.http/.settings/org.eclipse.pde.core.prefs
diff options
context:
space:
mode:
authorThomas Wolf <thomas.wolf@paranor.ch>2017-08-15 14:52:44 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2017-08-26 09:11:02 +0200
commitd32ad1cadd4fcbf908d48b20f6b16e96338c89e2 (patch)
treecb3d6edb215678954aa22648e71987673df84ac8 /org.eclipse.jgit.junit.http/.settings/org.eclipse.pde.core.prefs
parent7511bc886e801f5f30d8048117618dd3814cc3e7 (diff)
downloadjgit-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