Skip to content

Commit

Permalink
Add Generic Type for Simple Cache Map (#8812)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangShenao authored Aug 1, 2022
1 parent 5610449 commit 5a9b1e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class SimpleCache<K, V> implements Cache<K, V> {
private Map<K, V> cache;

public SimpleCache(int size) {
cache = new HashMap(size);
cache = new HashMap<>(size);
}

@Override
Expand Down

0 comments on commit 5a9b1e9

Please sign in to comment.