From f6873ffe522bbc3536969a3a3546bf9a819b92bf Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Mon, 14 May 2018 17:21:39 +0200 Subject: Fixup javadoc and formatting in RawText and RawParseUtils Change-Id: I9d6002941a33ec204d29e4fd920dde965387bb24 Signed-off-by: Han-Wen Nienhuys --- .../src/org/eclipse/jgit/util/RawParseUtils.java | 26 +++++++++++++--------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/util') diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/RawParseUtils.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/RawParseUtils.java index 490cdd3cd1..26fc9d80c5 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/RawParseUtils.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/RawParseUtils.java @@ -633,8 +633,9 @@ public final class RawParseUtils { * line 1. * @param end * 1 past the end of the content within buf. - * @return a line map indexing the start position of each line, or a map representing the entire - * array as a single line if a '\0' is found. + * @return a line map indicating the starting position of each line, or a + * map representing the entire buffer as a single line if + * buf contains a NUL byte. */ public static final IntList lineMap(final byte[] buf, int ptr, int end) { IntList map = lineMapOrNull(buf, ptr, end); @@ -648,19 +649,22 @@ public final class RawParseUtils { } /** - * Like {@link #lineMap(byte[], int, int)} but throw {@link BinaryBlobException} if a null char - * is encountered. - * @param buf buffer to scan. - * @param ptr position within the buffer corresponding to the first byte of + * Like {@link #lineMap(byte[], int, int)} but throw + * {@link BinaryBlobException} if a NUL byte is encountered. + * + * @param buf + * buffer to scan. + * @param ptr + * position within the buffer corresponding to the first byte of * line 1. - * @param end 1 past the end of the content within buf. - * @return a line map indexing the start position of each line, or a map representing the entire - * array as a single line if a '\0' is found. + * @param end + * 1 past the end of the content within buf. + * @return a line map indicating the starting position of each line. * @throws BinaryBlobException - * + * if a NUL byte is found. * @since 5.0 */ - public static final IntList lineMapOrBinary(final byte[] buf, int ptr, int end) + public static final IntList lineMapOrBinary(byte[] buf, int ptr, int end) throws BinaryBlobException { IntList map = lineMapOrNull(buf, ptr, end); if (map == null) { -- cgit v1.2.3