fix shared index tests (restore forward stub index while comparing stubs)

GitOrigin-RevId: c5bb784fc6c5a98ab008411e17c56325d49167bf
This commit is contained in:
Dmitry Batkovich
2023-10-19 22:29:01 +02:00
committed by intellij-monorepo-bot
parent fc3660ec27
commit f496120db1
2 changed files with 11 additions and 0 deletions

View File

@@ -65,5 +65,10 @@ final class CharSequenceHashInlineKeyDescriptor extends InlineKeyDescriptor<Char
public @NotNull IntStream codePoints() {
throw new UnsupportedOperationException();
}
@Override
public String toString() {
return "hash[" + hashCode + "]";
}
}
}

View File

@@ -181,6 +181,12 @@ public final class SerializedStubTree {
}
public @NotNull SerializedStubTree withoutStub() {
try {
restoreIndexedStubs();
}
catch (IOException e) {
throw new RuntimeException(e);
}
return new SerializedStubTree(ArrayUtil.EMPTY_BYTE_ARRAY,
0,
myIndexedStubBytes,