ObjectInputStream objectInputStream =
new StringInterningObjectInputStream(compilationErrorsIndexInputStream);
newCompilationErrorsIndex = (CompilationErrorsIndexImpl) objectInputStream.readObject();
objectInputStream.close();
} catch (IOException e) {
throw new CompilerIoException(
"Failed to read the compilation errors index for deserialization.", e);
} catch (ClassNotFoundException e) {
throw new CompilerIoException(
"Failed to deserialize the compilation errors index because a "
+ "referenced type could not be found.", e);
}
return newCompilationErrorsIndex;