expiringmap icon indicating copy to clipboard operation
expiringmap copied to clipboard

Fixed expiringEntryLoader example documentation

Open cdekker opened this issue 5 years ago • 2 comments

The sample documentation on lazy, variable expiration entry loading is not correct. Fixed the right method and added object types to the lambda. Without those, the type of address cannot be inferred, and new Connection(String) will complain that it cannot cast from Object to String.

cdekker avatar Apr 23 '19 13:04 cdekker

Coverage Status

Coverage remained the same at 68.539% when pulling 966efe9a90b124d1d59fa8d5cee71615053ed535 on cdekker:master into 41cb913a95fc60c730d532c8e3734257e689a25d on jhalterman:master.

coveralls avatar Apr 23 '19 13:04 coveralls

Which compiler / JDK are you using? This compiles fine for me on JDK 8.

jhalterman avatar Apr 26 '19 04:04 jhalterman