diff --git a/platform/core-impl/src/com/intellij/psi/stubs/PsiFileStubImpl.java b/platform/core-impl/src/com/intellij/psi/stubs/PsiFileStubImpl.java index 53af66ca33958..931f51ce2f57a 100644 --- a/platform/core-impl/src/com/intellij/psi/stubs/PsiFileStubImpl.java +++ b/platform/core-impl/src/com/intellij/psi/stubs/PsiFileStubImpl.java @@ -12,6 +12,7 @@ import com.intellij.psi.PsiFile; import com.intellij.psi.impl.source.PsiFileImpl; import com.intellij.psi.impl.source.PsiFileWithStubSupport; +import com.intellij.psi.tree.IElementType; import com.intellij.psi.tree.IStubFileElementType; import com.intellij.util.SmartList; import org.jetbrains.annotations.ApiStatus; @@ -113,7 +114,7 @@ private static StubTree getOrCalcStubTree(PsiFile stubBindingRoot) { public void setStubRoots(PsiFileStub @NotNull [] roots) { if (roots.length == 0) { - Logger.getInstance(getClass()).error("Incorrect psi file stub roots count" + this + "," + getStubType()); + Logger.getInstance(getClass()).error("Incorrect psi file stub roots count" + this); } myStubRoots = roots; } diff --git a/platform/indexing-impl/src/com/intellij/psi/stubs/StubTreeSerializerBase.java b/platform/indexing-impl/src/com/intellij/psi/stubs/StubTreeSerializerBase.java index f8028797095c5..7e38db445e63b 100644 --- a/platform/indexing-impl/src/com/intellij/psi/stubs/StubTreeSerializerBase.java +++ b/platform/indexing-impl/src/com/intellij/psi/stubs/StubTreeSerializerBase.java @@ -1,4 +1,4 @@ -// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.psi.stubs; import com.intellij.openapi.diagnostic.Logger; @@ -77,7 +77,7 @@ void serialize(@NotNull Stub rootStub, @NotNull OutputStream stream) throws IOEx if (rootStub instanceof PsiFileStubImpl fileStub) { PsiFileStub[] roots = fileStub.getStubRoots(); if (roots.length == 0) { - Logger.getInstance(getClass()).error("Incorrect stub files count during serialization:" + rootStub + "," + rootStub.getStubType()); + Logger.getInstance(getClass()).error("Incorrect stub files count during serialization:" + rootStub); } else { doDefaultSerialization = false;