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 f660d6bbd..9e26c3747 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(); }