From 00252730ddea2c765f725a9885a9d12f2b89537e Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Tue, 14 Jan 2020 20:13:48 +0100 Subject: [PATCH] Add ReftableNumbersNotIncreasingException#toString Change-Id: I28b6a6476df185f3f98f8020408b4b120086cb0b Signed-off-by: Han-Wen Nienhuys Signed-off-by: Matthias Sohn --- .../jgit/internal/storage/file/FileReftableStack.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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); + } } /** -- 2.39.5