From 0a2127b629272ce2560d24dd6887aeaf2c8e833b Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Mon, 11 Mar 2013 15:23:06 +0400 Subject: [PATCH] diagnostics --- .../openapi/vfs/newvfs/impl/VirtualDirectoryImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/impl/VirtualDirectoryImpl.java b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/impl/VirtualDirectoryImpl.java index 17ec9c44f8f4..3abc25d4df44 100644 --- a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/impl/VirtualDirectoryImpl.java +++ b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/impl/VirtualDirectoryImpl.java @@ -540,12 +540,13 @@ public class VirtualDirectoryImpl extends VirtualFileSystemEntry { Function verboseToString = new Function() { @Override public String fun(VirtualFileSystemEntry entry) { - return entry + " (name: '" + entry.getName() + "', " + entry.getClass()+ ")"; + return entry + " (name: '" + entry.getName() + "', " + entry.getClass()+ ", parent:"+entry.getParent()+"; id:"+entry.getId()+"; FS:" +entry.getFileSystem()+ "; delegate.attrs:" +entry.getFileSystem().getAttributes(entry)+ ") "; } }; String children = StringUtil.join(array, verboseToString, ","); throw new AssertionError( - verboseToString.fun(prev) + " equals to " + verboseToString.fun(file) + "; children: " + children + "\nDetails: " + ContainerUtil.map(details, new Function() { + verboseToString.fun(prev) + " equals to " + verboseToString.fun(file) + "; children: " + children + "\nDetails: " + ContainerUtil.map( + details, new Function() { @Override public Object fun(Object o) { return o instanceof Object[] ? Arrays.toString((Object[])o) : o;