apply the minor changes requested in the pull request

This commit is contained in:
Bernhard 2019-04-07 15:54:43 +02:00
parent a80ee81ba4
commit 506329e51a
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import org.telegram.abilitybots.api.util.Pair;
import java.util.*;
public class BackupMap<K, V> extends AbstractCollection<Pair<K, V>> implements Collection<Pair<K, V>> {
final class BackupMap<K, V> extends AbstractCollection<Pair<K, V>> implements Collection<Pair<K, V>> {
private Collection<Pair<K, V>> entries = new HashSet<>();
public BackupMap(){}

View File

@ -198,7 +198,7 @@ public class MapDBContext implements DBContext {
Set entrySet = (Set) value;
getSet(name).addAll(entrySet);
} else if (value instanceof BackupMap) {
Map<Object, Object> entryMap = ((BackupMap)value).toMap();
Map<Object, Object> entryMap = ((BackupMap) value).toMap();
getMap(name).putAll(entryMap);
} else if (value instanceof List) {
List entryList = (List) value;