Browse Source

Implement CommandRef.toString() to help debugging

Change-Id: If3ebed08c8f4e2cc925a97dbdd4c84410bc7c4a5
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-4.9
Matthias Sohn 7 years ago
parent
commit
52ed475211
  1. 8
      org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandRef.java

8
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandRef.java

@ -165,4 +165,12 @@ public class CommandRef {
r.setCommandName(getName()); r.setCommandName(getName());
return r; return r;
} }
@SuppressWarnings("nls")
@Override
public String toString() {
return "CommandRef [impl=" + impl + ", name=" + name + ", usage="
+ CLIText.get().resourceBundle().getString(usage) + ", common="
+ common + "]";
}
} }

Loading…
Cancel
Save