diff options
author | Shawn Pearce <spearce@spearce.org> | 2014-02-14 09:46:52 -0800 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2014-02-17 22:15:51 +0100 |
commit | 3fc5791778bbd1d33da34698d0054619f4cad56c (patch) | |
tree | 41bc863f3cb95de414fcc06fa8197a6029c170b7 /org.eclipse.jgit | |
parent | 1eae309723be301a4f2fc12a3e07e7e7c9f30782 (diff) | |
download | jgit-3fc5791778bbd1d33da34698d0054619f4cad56c.tar.gz jgit-3fc5791778bbd1d33da34698d0054619f4cad56c.zip |
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>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java | 4 |
1 files changed, 2 insertions, 2 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 f660d6bbd9..9e26c3747f 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java @@ -633,7 +633,7 @@ public class DiffFormatter { 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 @@ public class DiffFormatter { 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(); } |