Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
cf7164e7
Commit
cf7164e7
authored
Nov 30, 2017
by
Fedor Bobin
Committed by
Greg Messner
Nov 29, 2017
Browse files
Allow to setup client properties (#102)
parent
09fd7767
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/GitLabApiClient.java
100644 → 100755
View file @
cf7164e7
...
@@ -207,7 +207,9 @@ public class GitLabApiClient {
...
@@ -207,7 +207,9 @@ public class GitLabApiClient {
clientConfig
=
new
ClientConfig
();
clientConfig
=
new
ClientConfig
();
if
(
clientConfigProperties
!=
null
)
{
if
(
clientConfigProperties
!=
null
)
{
clientConfig
.
getProperties
().
putAll
(
clientConfigProperties
);
for
(
Map
.
Entry
<
String
,
Object
>
propertyEntry
:
clientConfigProperties
.
entrySet
())
{
clientConfig
.
property
(
propertyEntry
.
getKey
(),
propertyEntry
.
getValue
());
}
}
}
clientConfig
.
register
(
JacksonJson
.
class
);
clientConfig
.
register
(
JacksonJson
.
class
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment