From 2cd0a29075f543dc9d46bb945d483d3c2502beb7 Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Wed, 5 Jun 2024 16:22:38 +0300 Subject: [PATCH] #2025 long --- src/main/java/com/rultor/agents/github/Understands.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/rultor/agents/github/Understands.java b/src/main/java/com/rultor/agents/github/Understands.java index d502e43024..80de21720e 100644 --- a/src/main/java/com/rultor/agents/github/Understands.java +++ b/src/main/java/com/rultor/agents/github/Understands.java @@ -111,7 +111,7 @@ public Iterable process(final XML xml) throws IOException { ) ).iterator() ); - final int seen = Understands.seen(xml); + final long seen = Understands.seen(xml); long next = seen; int fresh = 0; int total = 0; @@ -211,12 +211,12 @@ private Req parse(final Comment.Smart comment, final XML xml) * @param xml XML * @return Number */ - private static int seen(final XML xml) { - final int seen; + private static long seen(final XML xml) { + final long seen; if (xml.nodes("/talk/wire/github-seen").isEmpty()) { seen = 0; } else { - seen = Integer.parseInt( + seen = Long.parseLong( xml.xpath("/talk/wire/github-seen/text()").get(0) ); }