Skip to content
This repository has been archived by the owner on Sep 17, 2020. It is now read-only.

FP: Local variable now is never used #26

Open
ben-manes opened this issue Nov 6, 2016 · 1 comment
Open

FP: Local variable now is never used #26

ben-manes opened this issue Nov 6, 2016 · 1 comment

Comments

@ben-manes
Copy link

Local variable now is never used.
This code contains a local variable now which is assigned but never used.
Probably it could be removed.

This variable is used within a lambda expression,

long now = cache.expirationTicker().read();
Consumer<Node<K, V>> consumer = node -> {
  K key = node.getKey();
  V value = node.getValue();
  if ((key != null) && (value != null) && !cache.hasExpired(node, now) && node.isAlive()) {
    action.accept(new WriteThroughEntry<>(cache, key, value));
    advanced[0] = true;
  }
};
@amaembo
Copy link
Owner

amaembo commented Nov 8, 2016

This is also a procyon bug, not fixed yet (see procyon#305). Unfortunately procyon development is stalled.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants