aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java')
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java
index e4bca2a496..ad9a36db18 100644
--- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java
+++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java
@@ -128,7 +128,8 @@ abstract class AbstractFetchCommand extends TextBuiltin {
writer.flush();
}
- private String longTypeOf(ObjectReader reader, final TrackingRefUpdate u) {
+ private static String longTypeOf(ObjectReader reader,
+ final TrackingRefUpdate u) {
final RefUpdate.Result r = u.getResult();
if (r == RefUpdate.Result.LOCK_FAILURE)
return "[lock fail]";
@@ -164,7 +165,7 @@ abstract class AbstractFetchCommand extends TextBuiltin {
return "[" + r.name() + "]"; //$NON-NLS-1$//$NON-NLS-2$
}
- private String safeAbbreviate(ObjectReader reader, ObjectId id) {
+ private static String safeAbbreviate(ObjectReader reader, ObjectId id) {
try {
return reader.abbreviate(id).name();
} catch (IOException cannotAbbreviate) {