From 967ee3330588d0117cb19e6964dbcc809c2f44ef Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 7 Jul 2014 21:18:43 +0200 Subject: [PATCH] less lengthy LeakHunter failure traces --- .../src/com/intellij/testFramework/LeakHunter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/testFramework/src/com/intellij/testFramework/LeakHunter.java b/platform/testFramework/src/com/intellij/testFramework/LeakHunter.java index 214442f53e6f..3b7d0e1d14a6 100644 --- a/platform/testFramework/src/com/intellij/testFramework/LeakHunter.java +++ b/platform/testFramework/src/com/intellij/testFramework/LeakHunter.java @@ -24,6 +24,7 @@ import com.intellij.openapi.util.UserDataHolder; import com.intellij.openapi.util.UserDataHolderBase; import com.intellij.util.Processor; import com.intellij.util.containers.ContainerUtil; +import com.intellij.util.containers.FList; import com.intellij.util.containers.Stack; import com.intellij.util.io.PersistentEnumerator; import com.intellij.util.ui.UIUtil; @@ -206,7 +207,7 @@ public class LeakHunter { while (backLink != null) { String valueStr; try { - valueStr = String.valueOf(backLink.value); + valueStr = backLink.value instanceof FList ? "FList" : String.valueOf(backLink.value); } catch (Throwable e) { valueStr = "("+e.getMessage()+" while computing .toString())";