Skip to content

Commit

Permalink
Speed up compilation by adding explicit type arguments to ScalaHashes…
Browse files Browse the repository at this point in the history
… map.
  • Loading branch information
Jan Boerman committed Dec 27, 2024
1 parent fcb1294 commit cf703ed
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package xyz.janboerman.scalaloader.util;

import xyz.janboerman.scalaloader.compat.Compat;
import static xyz.janboerman.scalaloader.compat.Compat.mapEntry;
import xyz.janboerman.scalaloader.plugin.description.ScalaVersion;

import java.io.IOException;
Expand All @@ -11,16 +12,13 @@
import java.util.Map;
import java.util.Objects;

import static xyz.janboerman.scalaloader.compat.Compat.mapOf;
import static xyz.janboerman.scalaloader.compat.Compat.mapEntry;

/**
* Utility class for getting SHA-1 hashes of Scala library artifacts from Maven Central.
*/
public final class ScalaHashes {

/** Generated by {@linkplain #main(String[])}. */
private static final Map<ScalaHash, String> SHA1_HASHES = mapOf(
private static final Map<ScalaHash, String> SHA1_HASHES = Compat.<ScalaHash, String>/*explicit type arguments speed up compilation*/mapOf(
mapEntry(new ScalaHash("2.11.12", "scala-reflect-url"), "2bb23c13c527566d9828107ca4108be2a2c06f01"),
mapEntry(new ScalaHash("2.11.12", "scala-library-url"), "bf5534e6fec3d665bd6419c952a929a8bdd4b591"),
mapEntry(new ScalaHash("2.12.6", "scala-reflect-url"), "f2c1ebc398963457d3b62dddde4562decb32e39a"),
Expand Down

0 comments on commit cf703ed

Please sign in to comment.