Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
750213b9
Unverified
Commit
750213b9
authored
4 years ago
by
Gautier de Saint Martin Lacaze
Committed by
GitHub
4 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #646 from aesy/master
Fixed ClassCastException when getting label name
parents
e405be8b
ba5a1ef7
main
5.0.x
5.0.x.jdk17
6.x
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/gitlab4j/api/AbstractApi.java
+1
-1
src/main/java/org/gitlab4j/api/AbstractApi.java
with
1 addition
and
1 deletion
+1
-1
src/main/java/org/gitlab4j/api/AbstractApi.java
+
1
-
1
View file @
750213b9
...
@@ -155,7 +155,7 @@ public abstract class AbstractApi implements Constants {
...
@@ -155,7 +155,7 @@ public abstract class AbstractApi implements Constants {
return
(
id
);
return
(
id
);
}
}
String
name
=
((
User
)
obj
).
getName
();
String
name
=
((
Label
)
obj
).
getName
();
if
(
name
!=
null
&&
name
.
trim
().
length
()
>
0
)
{
if
(
name
!=
null
&&
name
.
trim
().
length
()
>
0
)
{
return
(
urlEncode
(
name
.
trim
()));
return
(
urlEncode
(
name
.
trim
()));
}
}
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets