Skip to content

Commit

Permalink
Fix code comments, formatting issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Boerman committed Dec 25, 2024
1 parent bb6a1fa commit aa3e58e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ public static void register() {


private final String scalaVersion;
private final Map<String, String> urls;
private final Map<String, String> sha1Hashes;
private final Map<String, String> urls; //uses keys such as the string constants above.
private final Map<String, String> sha1Hashes; //uses same keys as urls.

/**
* @deprecated since Scala 3 there are more artifacts than just the scala standard library and the scala reflection library
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ public enum ScalaVersion {
v3_6_1("3.6.1", false),
v3_6_2("3.6.2");

//TODO include hashes of the jars! so that the loader can verify the integrity of the jars!

private static Map<String, ScalaVersion> byVersion = new HashMap<>();
private static final ScalaVersion latest_2_13;
static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ public static void downloadFile(URL inputResourceLocation, File outputFile, Stri
/** @deprecated Use {@linkplain #downloadFile(URL, File, String)} instead.*/
@Deprecated
public static void downloadFile(URL inputResourceLocation, File outputFile) throws IOException {
// TODO adjust call sites.

ReadableByteChannel rbc = null;
FileOutputStream fos = null;
try {
Expand All @@ -172,7 +170,6 @@ public static void downloadFile(URL inputResourceLocation, File outputFile) thro
}
}


private static void checkSha1Hash(File outputFile, String sha1hash) throws IOException {
if (sha1hash == null || sha1hash.isEmpty()) return;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public String getVersionString() {
}

public static record Custom(String scalaVersion, Map<String, String> urls, Map<String, String> sha1hashes) implements ScalaDependency {

/** @deprecated Use canonical constructor instead. */
@Deprecated
Custom(String scalaVersion, Map<String, String> urls) {
Expand Down

0 comments on commit aa3e58e

Please sign in to comment.