diff options
author | David Pursehouse <david.pursehouse@sonymobile.com> | 2015-09-30 18:18:09 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2015-09-30 18:20:34 +0900 |
commit | a489b6e6b87ccebb9370ef73c0fb50f12b8b75e4 (patch) | |
tree | b6e8286c9ecb0a9199d1b550ef1d586490c94be1 | |
parent | 729f085ac21507e631361cf97457e0edd5a7370c (diff) | |
download | jgit-a489b6e6b87ccebb9370ef73c0fb50f12b8b75e4.tar.gz jgit-a489b6e6b87ccebb9370ef73c0fb50f12b8b75e4.zip |
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 <david.pursehouse@sonymobile.com>
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java | 5 |
1 files 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) { |