use diamond operator
This commit is contained in:
parent
aa2038f9d7
commit
a2b4080fba
|
@ -91,7 +91,7 @@ public class CacheBuilder<K, V> {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Cache<K, V> build() {
|
public Cache<K, V> build() {
|
||||||
Cache<K, V> cache = new Cache();
|
Cache<K, V> cache = new Cache<>();
|
||||||
if (maximumWeight != -1) {
|
if (maximumWeight != -1) {
|
||||||
cache.setMaximumWeight(maximumWeight);
|
cache.setMaximumWeight(maximumWeight);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue