From 61bb1ce4ebbe0d4af55466943cf83b9862381f2c Mon Sep 17 00:00:00 2001 From: Gregory Michael Travis Date: Mon, 16 Dec 2024 10:38:47 -0500 Subject: [PATCH] Fix unused variable warning (#11851) --- .../Standard/Base/0.0.0-dev/src/Network/Reload_Detector.enso | 2 +- std-bits/base/src/main/java/org/enso/base/cache/LRUCache.java | 2 +- .../main/java/org/enso/base/enso_cloud/EnsoSecretHelper.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/distribution/lib/Standard/Base/0.0.0-dev/src/Network/Reload_Detector.enso b/distribution/lib/Standard/Base/0.0.0-dev/src/Network/Reload_Detector.enso index 966975d0ec..3669c7eaac 100644 --- a/distribution/lib/Standard/Base/0.0.0-dev/src/Network/Reload_Detector.enso +++ b/distribution/lib/Standard/Base/0.0.0-dev/src/Network/Reload_Detector.enso @@ -18,7 +18,7 @@ type Reload_Detector private Value mr:Managed_Resource new -> Reload_Detector = - mr = Managed_Resource.register (Ref.new 1) (x-> Nothing) True + mr = Managed_Resource.register (Ref.new 1) (_-> Nothing) True Reload_Detector.Value mr has_reload_occurred self = diff --git a/std-bits/base/src/main/java/org/enso/base/cache/LRUCache.java b/std-bits/base/src/main/java/org/enso/base/cache/LRUCache.java index eba05b6c33..64a199b424 100644 --- a/std-bits/base/src/main/java/org/enso/base/cache/LRUCache.java +++ b/std-bits/base/src/main/java/org/enso/base/cache/LRUCache.java @@ -109,7 +109,7 @@ public class LRUCache { // a rare case so it seems unnecessary. logger.log( Level.WARNING, - "Error in cache file handling; will re-execute without caching: {}", + "Error in cache file handling; will re-execute without caching: {0}", e.getMessage()); Item rerequested = itemBuilder.buildItem(); return new CacheResult<>(rerequested.stream(), rerequested.metadata()); diff --git a/std-bits/base/src/main/java/org/enso/base/enso_cloud/EnsoSecretHelper.java b/std-bits/base/src/main/java/org/enso/base/enso_cloud/EnsoSecretHelper.java index 2e7b622e68..c618398b99 100644 --- a/std-bits/base/src/main/java/org/enso/base/enso_cloud/EnsoSecretHelper.java +++ b/std-bits/base/src/main/java/org/enso/base/enso_cloud/EnsoSecretHelper.java @@ -163,7 +163,7 @@ public final class EnsoSecretHelper extends SecretValueResolver { keyStrings.add(resolvedHeader.getRight()); } - return Integer.toString(Arrays.deepHashCode(keyStrings.toArray())); + return Integer.toHexString(Arrays.deepHashCode(keyStrings.toArray())); } @Override