Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wolf2017-08-15 08:52:44 -0400
committerMatthias Sohn2017-08-26 03:11:02 -0400
commitd32ad1cadd4fcbf908d48b20f6b16e96338c89e2 (patch)
treecb3d6edb215678954aa22648e71987673df84ac8 /org.eclipse.jgit.junit.http/.settings/org.eclipse.jdt.ui.prefs
parent7511bc886e801f5f30d8048117618dd3814cc3e7 (diff)
downloadjgit-d32ad1cadd4fcbf908d48b20f6b16e96338c89e2.tar.gz
jgit-d32ad1cadd4fcbf908d48b20f6b16e96338c89e2.tar.xz
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.jdt.ui.prefs')
0 files changed, 0 insertions, 0 deletions

Back to the top