IDEA-311103 Guava dependency dropped from build scripts

GitOrigin-RevId: 8efbef90cb6e991414b2b4208c154cee0e315bf3
This commit is contained in:
Dmitriy.Panov
2023-02-10 14:09:40 +01:00
committed by intellij-monorepo-bot
parent 55ee569ff3
commit 963fbfe168
2 changed files with 2 additions and 5 deletions

View File

@@ -51,7 +51,6 @@
<orderEntry type="module" module-name="intellij.groovy.rt" scope="RUNTIME" />
<orderEntry type="library" name="fastutil-min" level="project" />
<orderEntry type="library" name="gson" level="project" />
<orderEntry type="library" name="Guava" level="project" />
<orderEntry type="library" name="protobuf" level="project" />
<orderEntry type="module" module-name="intellij.devkit.jps" scope="RUNTIME" />
<orderEntry type="module" module-name="intellij.java.guiForms.jps" scope="RUNTIME" />

View File

@@ -1,12 +1,11 @@
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.intellij.build.impl.compilation.cache
import com.google.common.hash.Hashing
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import org.jetbrains.jps.cache.model.BuildTargetState
import org.jetbrains.xxh3.Xxh3
import org.jetbrains.intellij.build.impl.compilation.CompilationOutput
import java.nio.charset.StandardCharsets
import java.nio.file.Files
import java.nio.file.Path
@@ -88,6 +87,5 @@ class SourcesStateProcessor(dataStorageRoot: Path, private val classesOutputDire
}
private fun calculateStringHash(content: String): String {
val hasher = Hashing.murmur3_128().newHasher()
return hasher.putString(content, StandardCharsets.UTF_8).hash().toString()
return Xxh3.hash(content).toString()
}