From 1ea356b3465974a955c0118725c9bafce657a0e6 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Tue, 31 Aug 2010 20:27:25 -0700 Subject: [PATCH] Move DiffFormatter default initialization to fields Other fields in this class are initialized in their declaration, make the code consistent with itself and use only one style. Change-Id: I49a007e97ba52faa6b89f7e4b1eec85dccac0fa4 Signed-off-by: Shawn O. Pearce --- .../src/org/eclipse/jgit/diff/DiffFormatter.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java b/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java index 40a5b3764..231b8ab20 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java @@ -82,9 +82,9 @@ public class DiffFormatter { private Repository db; - private int context; + private int context = 3; - private int abbreviationLength; + private int abbreviationLength = 7; private RawText.Factory rawTextFactory = RawText.FACTORY; @@ -100,8 +100,6 @@ public class DiffFormatter { */ public DiffFormatter(OutputStream out) { this.out = out; - setContext(3); - setAbbreviationLength(7); } /** @return the stream we are outputting data to. */