use diamond operator

This commit is contained in:
Martijn van Groningen 2017-06-29 13:43:05 +02:00
parent aa2038f9d7
commit a2b4080fba
No known key found for this signature in database
GPG Key ID: AB236F4FCF2AF12A
1 changed files with 1 additions and 1 deletions

View File

@ -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);
} }