Skip to content

Commit

Permalink
Minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaleo committed Apr 21, 2024
1 parent afdec2c commit 2b6a933
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class TestSessionVariables extends ConcurrentHashMap implements SessionMap {
public class TestSessionVariables<K,V> extends ConcurrentHashMap<K,V> implements SessionMap<K,V> {

private final Map<String, String> metadata = new ConcurrentHashMap();
private final Map<String, String> metadata = new ConcurrentHashMap<>();

@Override
public void shouldContainKey(Object key) {
Expand All @@ -20,7 +20,7 @@ public void shouldContainKey(Object key) {


@Override
public Object put(Object key, Object value) {
public V put(K key, V value) {
if (value == null) {
return remove(key);
} else {
Expand Down

0 comments on commit 2b6a933

Please sign in to comment.