From 52ed475211e2a401d9641a7613ae24abad542685 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Fri, 8 Sep 2017 01:47:56 +0200 Subject: [PATCH] Implement CommandRef.toString() to help debugging Change-Id: If3ebed08c8f4e2cc925a97dbdd4c84410bc7c4a5 Signed-off-by: Matthias Sohn --- .../src/org/eclipse/jgit/pgm/CommandRef.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandRef.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandRef.java index 52225150a5..e5f85324e1 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandRef.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandRef.java @@ -165,4 +165,12 @@ public class CommandRef { r.setCommandName(getName()); return r; } + + @SuppressWarnings("nls") + @Override + public String toString() { + return "CommandRef [impl=" + impl + ", name=" + name + ", usage=" + + CLIText.get().resourceBundle().getString(usage) + ", common=" + + common + "]"; + } } -- 2.39.5