You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/03/24 14:27:42 UTC
[camel] 09/17: (chores) camel-github: use builtin Java methods for data conversion
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit e4ddf9eba1830bac390cbc55ceefd4d37e0e7e80
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Mar 24 14:04:06 2023 +0100
(chores) camel-github: use builtin Java methods for data conversion
---
.../apache/camel/component/github/services/MockPullRequestService.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/camel-github/src/test/java/org/apache/camel/component/github/services/MockPullRequestService.java b/components/camel-github/src/test/java/org/apache/camel/component/github/services/MockPullRequestService.java
index e0f6f205570..af06c0eddf5 100644
--- a/components/camel-github/src/test/java/org/apache/camel/component/github/services/MockPullRequestService.java
+++ b/components/camel-github/src/test/java/org/apache/camel/component/github/services/MockPullRequestService.java
@@ -66,7 +66,7 @@ public class MockPullRequestService extends PullRequestService {
User author = createAuthor();
commitComment.setUser(author);
- commitComment.setCommitId("" + pullRequestId);
+ commitComment.setCommitId(Long.toString(pullRequestId));
commitComment.setId(commentId.getAndIncrement());
commitComment.setBody(bodyText);
commitComment.setBodyText(bodyText);