Skip to content

Commit

Permalink
#2025 long in Reports
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jun 5, 2024
1 parent 6c46a0b commit 8137229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/rultor/agents/github/Reports.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public Iterable<Directive> process(final XML xml) throws IOException {
} else {
pattern = "Reports.failure";
}
final int number = Integer.parseInt(req.xpath("@id").get(0));
final long number = Long.parseLong(req.xpath("@id").get(0));
final Comment.Smart comment = new Comment.Smart(
new SfComment(
Reports.origin(issue, number)
Expand Down Expand Up @@ -162,7 +162,7 @@ private static String tail(final XML req) {
* @return Comment
*/
private static Comment.Smart origin(final Issue.Smart issue,
final int number) {
final long number) {
final Comment comment;
if (number == 1) {
comment = new FirstComment(issue);
Expand Down

0 comments on commit 8137229

Please sign in to comment.