From a489b6e6b87ccebb9370ef73c0fb50f12b8b75e4 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Wed, 30 Sep 2015 18:18:09 +0900 Subject: Fix compiler warnings in DiffFormatter.writeGitLinkText - Remove declaration of IOException that is no longer thrown - Add missing //$NON-NLS-1$ to prevent "Non-externalized string literal" warning. These warnings seem to have been introduced by If13f7b406. Change-Id: I30058eed31b92067a6ab22e787732b08e29f8d63 Signed-off-by: David Pursehouse --- org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java | 5 ++--- 1 file changed, 2 insertions(+), 3 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 15abcda561..4c0ed386e8 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java @@ -665,10 +665,9 @@ public class DiffFormatter implements AutoCloseable { format(res.header, res.a, res.b); } - private static byte[] writeGitLinkText(AbbreviatedObjectId id) - throws IOException { + private static byte[] writeGitLinkText(AbbreviatedObjectId id) { return encodeASCII("Subproject commit " + id.name() //$NON-NLS-1$ - + "\n"); + + "\n"); //$NON-NLS-1$ } private String format(AbbreviatedObjectId id) { -- cgit v1.2.3