From: Shawn O. Pearce Date: Tue, 21 Jul 2009 20:19:20 GMT Subject: [JGIT PATCH 02/12] Correct name of fileRead member of Config class Message-ID: <1248207570-13880-3-git-send-email-spearce@spearce.org> In-Reply-To: <1248207570-13880-2-git-send-email-spearce@spearce.org> The setter method is called setFileRead() so the member should have been called fileRead, not readFile. Signed-off-by: Shawn O. Pearce --- .../src/org/spearce/jgit/lib/Config.java | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/org.spearce.jgit/src/org/spearce/jgit/lib/Config.java b/org.spearce.jgit/src/org/spearce/jgit/lib/Config.java index c2d5c6e..a31796c 100644 --- a/org.spearce.jgit/src/org/spearce/jgit/lib/Config.java +++ b/org.spearce.jgit/src/org/spearce/jgit/lib/Config.java @@ -60,8 +60,7 @@ * file. */ public abstract class Config { - - private boolean readFile; + private boolean fileRead; private List entries; @@ -96,7 +95,7 @@ protected Config(Config base) { * true if file does not need loading */ protected void setFileRead(boolean ok) { - readFile = ok; + fileRead = ok; } /** @@ -404,7 +403,7 @@ private String getRawString(final String section, final String subsection, } private void ensureLoaded() { - if (!readFile) { + if (!fileRead) { try { load(); } catch (FileNotFoundException err) { @@ -703,7 +702,7 @@ protected void printConfig(final PrintWriter r) { */ public void load() throws IOException { clear(); - readFile = true; + fileRead = true; final BufferedReader r = new BufferedReader(new InputStreamReader( openInputStream(), Constants.CHARSET)); try { -- 1.6.4.rc1.186.g60aa0c