• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ben-manes / caffeine / 2063
100%

Build:
DEFAULT BRANCH: master
Ran 20 May 2017 07:35PM UTC
Jobs 1
Files 67
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2063

push

travis-ci

ben-manes
Fix calculation of JCache's access expiration (fixes #158)

If the entry had been eternal then, on access, the current time was
set to a duration with the unit of nanosecond instead of milliseconds.

The JCache expiration time sometimes assumed wall-clock behavior and
not nanoTime's. For writes there are still 3 magic values and those
will be removed in the v3 JCache rewrite (to use Caffeine's variable
expiration).

Improved the documentation for Expiry. Unfortunately it would probably
be best if the currentTime parameter was not provided. This was free
as already obtained from the ticker, but that defaults to nanoTime and
is not a wall-clock value. The main use cases for the parameter would be
to calculate against an external resource's timestamp, but that must be
done with a wall-clock resolution (System.currentTimeMillis). The focus
on implementation details and writing docs late meant this API gaffe
was overlooked, resulting in hinting towards an error prone usage.

23 of 23 new or added lines in 2 files covered. (100.0%)

5653 of 6023 relevant lines covered (93.86%)

0.94 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
100.0
jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java

Coverage Regressions

Lines Coverage ∆ File
5
100.0
caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java
2
100.0
caffeine/src/main/java/com/github/benmanes/caffeine/SingleConsumerQueue.java
Jobs
ID Job ID Ran Files Coverage
1 2063.1 (TERM=dumb) 20 May 2017 07:35PM UTC 0
93.86
Travis Job 2063.1
Source Files on build 2063
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2063
  • 1d6fa59c on github
  • Prev Build on master (#2062)
  • Next Build on master (#2065)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc