aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2024-12-28 23:26:22 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2024-12-29 01:47:34 +0100
commit0e70ee5befd80990dda96e8ced17d4d1825e1085 (patch)
tree6f3bd6bec7a617a8932e12f9c5a4775c21bc435c /org.eclipse.jgit/src
parent4172b4980ead79fc222f01658c7e04a4bd9b8d7b (diff)
downloadjgit-0e70ee5befd80990dda96e8ced17d4d1825e1085.tar.gz
jgit-0e70ee5befd80990dda96e8ced17d4d1825e1085.zip
RevCommit: replace deprecated RawParseUtils#headerEnd
Change-Id: I4e61af621b63b0715596b5a8c7d8eb985d64ce26
Diffstat (limited to 'org.eclipse.jgit/src')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevCommit.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevCommit.java b/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevCommit.java
index 55ddebf288..871545fca2 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevCommit.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevCommit.java
@@ -401,13 +401,13 @@ public class RevCommit extends RevObject {
* @since 5.1
*/
public final byte[] getRawGpgSignature() {
- final byte[] raw = buffer;
- final byte[] header = { 'g', 'p', 'g', 's', 'i', 'g' };
- final int start = RawParseUtils.headerStart(header, raw, 0);
+ byte[] raw = buffer;
+ byte[] header = { 'g', 'p', 'g', 's', 'i', 'g' };
+ int start = RawParseUtils.headerStart(header, raw, 0);
if (start < 0) {
return null;
}
- final int end = RawParseUtils.headerEnd(raw, start);
+ int end = RawParseUtils.nextLfSkippingSplitLines(raw, start);
return RawParseUtils.headerValue(raw, start, end);
}