ben-manes / caffeine

Local variables should not be assigned in return statements JAVA-W1037
Anti-pattern
Major
2 occurrences in this check
192      R result;
193      long startTime = statsTicker().read();
194      try {
195        result = remappingFunction.apply(t, u);196      } catch (RuntimeException | Error e) {
197        if (recordLoadFailure) {
198          statsCounter().recordLoadFailure(statsTicker().read() - startTime);
158      statsCounter().recordMisses(1);
159      long startTime = statsTicker().read();
160      try {
161        value = mappingFunction.apply(key);162      } catch (RuntimeException | Error e) {
163        statsCounter().recordLoadFailure(statsTicker().read() - startTime);
164        throw e;