Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHan-Wen Nienhuys2020-01-14 19:13:48 +0000
committerMatthias Sohn2020-01-15 00:51:43 +0000
commit00252730ddea2c765f725a9885a9d12f2b89537e (patch)
tree773e36ba44508ce540e2aaddb4486f62818ef45e
parent2f3258cc28482d744c14caa8109cecd3316db659 (diff)
downloadjgit-00252730ddea2c765f725a9885a9d12f2b89537e.tar.gz
jgit-00252730ddea2c765f725a9885a9d12f2b89537e.tar.xz
jgit-00252730ddea2c765f725a9885a9d12f2b89537e.zip
Add ReftableNumbersNotIncreasingException#toString
Change-Id: I28b6a6476df185f3f98f8020408b4b120086cb0b Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileReftableStack.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileReftableStack.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileReftableStack.java
index f854edb281..5b540bd7ea 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileReftableStack.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileReftableStack.java
@@ -145,6 +145,14 @@ public class FileReftableStack implements AutoCloseable {
this.lastMax = lastMax;
this.min = min;
}
+
+ @SuppressWarnings({ "nls", "boxing" })
+ @Override
+ public String toString() {
+ return String.format(
+ "ReftableNumbersNotIncreasingException %s: min %d, lastMax %d",
+ name, min, lastMax);
+ }
}
/**

Back to the top