Fix unused variable warning (#11851)

This commit is contained in:
Gregory Michael Travis 2024-12-16 10:38:47 -05:00 committed by GitHub
parent aebfacd486
commit 61bb1ce4eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ type Reload_Detector
private Value mr:Managed_Resource private Value mr:Managed_Resource
new -> Reload_Detector = 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 Reload_Detector.Value mr
has_reload_occurred self = has_reload_occurred self =

View File

@ -109,7 +109,7 @@ public class LRUCache<M> {
// a rare case so it seems unnecessary. // a rare case so it seems unnecessary.
logger.log( logger.log(
Level.WARNING, 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()); e.getMessage());
Item<M> rerequested = itemBuilder.buildItem(); Item<M> rerequested = itemBuilder.buildItem();
return new CacheResult<>(rerequested.stream(), rerequested.metadata()); return new CacheResult<>(rerequested.stream(), rerequested.metadata());

View File

@ -163,7 +163,7 @@ public final class EnsoSecretHelper extends SecretValueResolver {
keyStrings.add(resolvedHeader.getRight()); keyStrings.add(resolvedHeader.getRight());
} }
return Integer.toString(Arrays.deepHashCode(keyStrings.toArray())); return Integer.toHexString(Arrays.deepHashCode(keyStrings.toArray()));
} }
@Override @Override