jhalterman / expiringmap

A high performance thread-safe map that expires entries
Apache License 2.0
1k stars 142 forks source link

Fixed expiringEntryLoader example documentation #63

Open cdekker opened 5 years ago

cdekker commented 5 years ago

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.

coveralls commented 5 years ago

Coverage Status

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

jhalterman commented 5 years ago

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