From c6a0d441b4493f4cdc8a8d3e8cb221f070dfc305 Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Sun, 9 Jul 2023 19:14:43 +0200 Subject: Allocate all groups in one go With many groups and dynamic allocation allocating group by group is too slow. --- vespajlib/src/main/java/com/yahoo/yolean/Exceptions.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vespajlib') diff --git a/vespajlib/src/main/java/com/yahoo/yolean/Exceptions.java b/vespajlib/src/main/java/com/yahoo/yolean/Exceptions.java index 4f3f048eb0c..a50ea2b97c1 100644 --- a/vespajlib/src/main/java/com/yahoo/yolean/Exceptions.java +++ b/vespajlib/src/main/java/com/yahoo/yolean/Exceptions.java @@ -27,6 +27,8 @@ public class Exceptions { for (; t != null; t = t.getCause()) { message = getMessage(t); if (message == null) continue; + message = message.trim(); + if (message.isEmpty()) continue; if (message.equals(lastMessage)) continue; if (b.length() > 0) { b.append(": "); -- cgit v1.2.3