mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
diagnostics
This commit is contained in:
+3
-2
@@ -540,12 +540,13 @@ public class VirtualDirectoryImpl extends VirtualFileSystemEntry {
|
||||
Function<VirtualFileSystemEntry, String> verboseToString = new Function<VirtualFileSystemEntry, String>() {
|
||||
@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<Object, Object>() {
|
||||
verboseToString.fun(prev) + " equals to " + verboseToString.fun(file) + "; children: " + children + "\nDetails: " + ContainerUtil.map(
|
||||
details, new Function<Object, Object>() {
|
||||
@Override
|
||||
public Object fun(Object o) {
|
||||
return o instanceof Object[] ? Arrays.toString((Object[])o) : o;
|
||||
|
||||
Reference in New Issue
Block a user