Add missing static qualifier in DiffFormatter

These methods do not touch instance members and can avoid the
implicit "this" argument.

Change-Id: I01c30bb22266eed1c9db18bdf9f90c1c1590e3ec
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
Shawn Pearce 2014-02-14 09:46:52 -08:00 committed by Matthias Sohn
parent 1eae309723
commit 3fc5791778
1 changed files with 2 additions and 2 deletions

View File

@ -633,7 +633,7 @@ public void format(DiffEntry ent) throws IOException {
format(res.header, res.a, res.b);
}
private void writeGitLinkDiffText(OutputStream o, DiffEntry ent)
private static void writeGitLinkDiffText(OutputStream o, DiffEntry ent)
throws IOException {
if (ent.getOldMode() == GITLINK) {
o.write(encodeASCII("-Subproject commit " + ent.getOldId().name() //$NON-NLS-1$
@ -757,7 +757,7 @@ protected void writeContextLine(final RawText text, final int line)
writeLine(' ', text, line);
}
private boolean isEndOfLineMissing(final RawText text, final int line) {
private static boolean isEndOfLineMissing(final RawText text, final int line) {
return line + 1 == text.size() && text.isMissingNewlineAtEnd();
}