Amadeu Cabanilles
Amadeu Cabanilles

Reputation: 963

expiration in com.google.common.collect.MapMaker

I've just download the last release guava

<!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
<dependency>
    <groupId>com.google.guava</groupId>
    <artifactId>guava</artifactId>
    <version>20.0-hal</version>
</dependency>

and I see that the class MapMaker does not have anymore the method expiration which I found it useful and I have not found any replacement method.

Upvotes: 1

Views: 1089

Answers (1)

mfulton26
mfulton26

Reputation: 31234

See MapMakerMigration · google/guava Wiki:

All caching related methods on MapMaker have been deprecated in favor of similar methods in CacheBuilder, and are scheduled for upcoming deletion.

It looks like it was first deprecated in version 8.0 and removed before 13.0.

Upvotes: 3

Related Questions