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
c3b9c327
Commit
c3b9c327
authored
Feb 03, 2018
by
Greg Messner
Browse files
Changed processing of whitespace on content properties (#136).
parent
9b2b383e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/AbstractApi.java
View file @
c3b9c327
...
@@ -299,8 +299,8 @@ public abstract class AbstractApi implements Constants {
...
@@ -299,8 +299,8 @@ public abstract class AbstractApi implements Constants {
return
;
return
;
}
}
String
stringValue
=
value
.
toString
()
.
trim
()
;
String
stringValue
=
value
.
toString
();
if
(
required
&&
stringValue
.
length
()
==
0
)
{
if
(
required
&&
stringValue
.
trim
().
length
()
==
0
)
{
throw
new
IllegalArgumentException
(
name
+
" cannot be empty or null"
);
throw
new
IllegalArgumentException
(
name
+
" cannot be empty or null"
);
}
}
...
...
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