Pārlūkot izejas kodu

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>
tags/v4.2.0.201511101648-m1
David Pursehouse pirms 8 gadiem
vecāks
revīzija
a489b6e6b8

+ 2
- 3
org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java Parādīt failu

@@ -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) {

Notiek ielāde…
Atcelt
Saglabāt