Simplify RawParseUtils.nextLF invocations
commit823dada255658917cd01486f2dc87e936dff5c50
authorShawn O. Pearce <spearce@spearce.org>
Wed, 10 Dec 2008 22:05:46 +0000 (10 14:05 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 13 Dec 2008 02:13:24 +0000 (13 03:13 +0100)
treebe003873c3ac72e6a719f6482a9d67d0619f8c04
parent4a42ffc91e0c1dfecac3c34f377a764b128f67c5
Simplify RawParseUtils.nextLF invocations

Most of the time when we call next('\n') or nextLF('\n') we really
meant to just say nextLF(), which is logically identical to next()
but could be micro-optimized for the LF byte.

This refactoring shifts the calls to use the new nextLF wrapper for
next('\n'), so we can later chose to make this optimization, or to
leave the code as-is.  But either way the call sites are now much
clearer to read.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/lib/ObjectChecker.java
org.spearce.jgit/src/org/spearce/jgit/revwalk/RevTag.java
org.spearce.jgit/src/org/spearce/jgit/util/RawParseUtils.java