do not use guava immutable map (part 2)

GitOrigin-RevId: a30122e0670b70932eed14da4c391317153c5024
This commit is contained in:
Vladimir Krivosheev
2024-02-09 13:30:14 +01:00
committed by intellij-monorepo-bot
parent 4420b58bc9
commit 1c5f802ea3
11 changed files with 78 additions and 104 deletions

View File

@@ -14,7 +14,6 @@
<orderEntry type="module" module-name="intellij.platform.projectModel" exported="" />
<orderEntry type="module" module-name="intellij.platform.projectModel.impl" />
<orderEntry type="module" module-name="intellij.java.indexing" exported="" />
<orderEntry type="library" name="Guava" level="project" />
<orderEntry type="library" name="kotlin-stdlib" level="project" />
<orderEntry type="library" name="fastutil-min" level="project" />
</component>

View File

@@ -1,7 +1,6 @@
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// 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.impl
import com.google.common.annotations.VisibleForTesting
import com.intellij.ide.highlighter.JavaFileType
import com.intellij.lang.LighterAST
import com.intellij.lang.LighterASTNode
@@ -28,6 +27,7 @@ import com.intellij.util.io.EnumeratorStringDescriptor
import it.unimi.dsi.fastutil.ints.Int2ObjectMap
import it.unimi.dsi.fastutil.ints.Int2ObjectMaps
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap
import org.jetbrains.annotations.VisibleForTesting
import java.io.DataInput
import java.io.DataOutput

View File

@@ -1,7 +1,6 @@
// 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.impl.java;
import com.google.common.base.MoreObjects;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.io.DataInputOutputUtilRt;
import com.intellij.openapi.vfs.VirtualFile;
@@ -23,7 +22,7 @@ import java.util.Collections;
import java.util.List;
import java.util.Set;
public class FunExprOccurrence {
public final class FunExprOccurrence {
private final int argIndex;
private final List<? extends ReferenceChainLink> referenceContext;
@@ -45,10 +44,7 @@ public class FunExprOccurrence {
@Override
public String toString() {
return MoreObjects.toStringHelper(this)
.add("argIndex", argIndex)
.add("chain", referenceContext)
.toString();
return "FunExprOccurrence(argIndex=" + argIndex + ", chain=" + referenceContext + ")";
}
void serialize(DataOutput out) throws IOException {