]> source.dussan.org Git - jgit.git/commit
RawParseUtils.nextLfSkippingSplitLines: fulfil contract as stated 28/1176328/1
authorThomas Wolf <twolf@apache.org>
Thu, 1 Feb 2024 18:24:15 +0000 (19:24 +0100)
committerThomas Wolf <twolf@apache.org>
Thu, 1 Feb 2024 19:26:35 +0000 (20:26 +0100)
commit5afb92aadd2599b8209739df6fc8a95b8d7adadc
tree777f641c717336375521d1aa739e4a14bb2ebaff
parent5eff1dd4c7497aab41a7db6b5ab6360233f0cd32
RawParseUtils.nextLfSkippingSplitLines: fulfil contract as stated

If there is no newline after the last header, the method is supposed to
return the buffer length, but it returned buffer.length - 1.

Change-Id: I9225d6a35a002244c246bc8781ceaf4369fb9a60
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/RawParseUtilsTest.java
org.eclipse.jgit/src/org/eclipse/jgit/util/RawParseUtils.java