Skip to content

Commit

Permalink
Merge pull request #810 from markdomeng/master
Browse files Browse the repository at this point in the history
Update calls to deprecated method Hashing.murmur3_32
  • Loading branch information
markdomeng authored Oct 10, 2023
2 parents 2827b7f + 428bf9b commit d1184af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import java.util.Collections;

import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.LogManager;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.xtext.naming.QualifiedName;
Expand Down Expand Up @@ -49,7 +49,7 @@ public boolean createEObjectDescriptions(final EObject eObject, final IAcceptor<
try {
QualifiedName qualifiedName = getQualifiedNameProvider().getFullyQualifiedName(model);
if (qualifiedName != null) {
Hasher hasher = Hashing.murmur3_32().newHasher(HASHER_CAPACITY);
Hasher hasher = Hashing.murmur3_32_fixed().newHasher(HASHER_CAPACITY);
hasher.putUnencodedChars(getSourceText(model));
for (ScopeModel include : model.getIncludedScopes()) {
hasher.putUnencodedChars(getSourceText(include));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class DefaultInferredElementFragmentProvider implements IInferredElementF
@Inject
private IQualifiedNameProvider qualifiedNameProvider;

private final HashFunction hashFunction = Hashing.murmur3_32();
private final HashFunction hashFunction = Hashing.murmur3_32_fixed();

private final Map<EClass, byte[]> eClassToUriBytesMap = Maps.newHashMap();

Expand Down

0 comments on commit d1184af

Please sign in to comment.